public OnPlayerSpawn(playerid){ if ( IsPlayerNPC ( playerid ) ) // Ellenõrzi a szerver, hogy a játékos NPC játékos-e { new npcname [ MAX_PLAYER_NAME ]; // Létrehozunk egy változót GetPlayerName ( playerid, npcname, sizeof ( npcname ) ); // Megkeressük az NPC játékos nevét if ( !strcmp ( npcname, \"John_Smith\", true ) ) // Összehasonlítsuk a játékos nevét a \"MyFirstNPC\" névvel { PutPlayerInVehicle ( playerid, johnVehicle, 0 ); // Beletesszük a játékost, a jármûbe return 1; // Visszatérési érték } if ( !strcmp ( npcname, \"Thommas_Bud\", true ) ) // Ellenõrzik a következõ névvel { PutPlayerInVehicle(playerid, thommasVehicleID, 0); // Betesszük õt a jármûbe return 1; // Visszatérési érték }Nevekki(playerid); SetPVarInt(playerid, \"anims_loaded\", 1);for(new a=0; a < 129; a++) ApplyAnimation(playerid,AnimLibraies[a],\"null\",0.0,0,0,0,0,0); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1);SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1);SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1);SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1);SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1);SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1);TextDrawShowForPlayer(playerid, Box[playerid]);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, NevMutat[playerid]);TextDrawShowForPlayer(playerid, jOra[playerid]);TextDrawShowForPlayer(playerid, NevMutat2[playerid]);TextDrawShowForPlayer(playerid, jOra2[playerid]);TextDrawShowForPlayer(playerid, BankPenz[playerid]);TextDrawShowForPlayer(playerid, WebText[playerid]); SetPlayerArmour(playerid, pInfo[ playerid ][ pArmor ]);animotkapot1[playerid] = 0;animotkapot2[playerid] = 0;new S[128]; EhsegTimer[playerid] = SetTimerEx(\"EhsegFrissit\", 60*60000, true, \"d\", playerid); if(Beloggolt[playerid] == 1){gettime(gOra, gPerc);SetPlayerTime(playerid,gOra,gPerc); format(S, sizeof(S), \"(( %s belépett ))\", Nev(playerid)); ProxDetector(10.0, playerid, S, FONTOS, FONTOS, FONTOS, FONTOS, FONTOS); if(pInfo[playerid][pBorton] == 0 && Meghalt[playerid] == 0 && Speec[playerid] == 0){ if(pInfo[playerid][pPerc] == 0 && pInfo[playerid][pMPerc] == 0 && pInfo[playerid][pOra] == 0 && Meghalt[playerid] == 0) { if(pInfo[playerid][pKor] < 1) { SetPlayerPos(playerid, -2383.4011,2436.8066,1001.1); SetPlayerFacingAngle(playerid, 94.4580); SendClientMessage(playerid, NARANCS, \"Isten hozta a községünkben!\"); ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, \"Kérem adja meg a nemét!\", \"Férfi\\nNõ\", \"Rendben\", \"Mégsem\"); HourTimer[playerid] = SetTimerEx(\"HourJump\", 1000, true, \"i\", playerid); if(Egyezik(Nev(playerid), \"Corrado Cattani\")) { pInfo[playerid][pAdmin] = 3; SendClientMessage(playerid, NARANCS, \"* Szia! Admin szintedet megkaptad! \"); } if(Egyezik(Nev(playerid), \"Corrado Cattani\")) { pInfo[playerid][pAdmin] = 3; SendClientMessage(playerid, NARANCS, \"* Szia! Admin szintedet megkaptad! \"); } if(Egyezik(Nev(playerid), \"Corrado Cattani\")) { pInfo[playerid][pAdmin] = 3; SendClientMessage(playerid, NARANCS, \"* Szia! Admin szintedet megkaptad! \"); } if(Egyezik(Nev(playerid), \"Corrado Cattani\")) { pInfo[playerid][pAdmin] = 3; SendClientMessage(playerid, NARANCS, \"* Szia! Admin szintedet megkaptad! \"); } } } /*else if(pInfo[playerid][pHaz] == 1 && pInfo[playerid][pMPerc] > 1 && Meghalt[playerid] == 0 && Speec[playerid] == 0) { for(new i; i < MAX_HAZ; i ++) { if(Egyezik(Nev(playerid), hInfo[Tulaj])) { SetPlayerPos(playerid, hInfo[intiX], hInfo[intiY], hInfo[intiZ]); SetPlayerInterior(playerid, hInfo[interior]), SetPlayerVirtualWorld(playerid, hInfo[VWorld]); Hazban[playerid] = i; Betolt(playerid); SendClientMessage(playerid, NARANCS, \"A házadban ébredtél!\"); HourTimer[playerid] = SetTimerEx(\"HourJump\", 1000, true, \"i\", playerid); } } }*/ else if(/*pInfo[playerid][pHaz] == 0 && */Meghalt[playerid] == 0 && Speec[playerid] == 0) { Betolt(playerid); KillTimer(HourTimer[playerid]); HourTimer[playerid] = SetTimerEx(\"HourJump\", 1000, true, \"i\", playerid); if( pInfo[ playerid ][ spawnx ] != 0 && pInfo[ playerid ][ spawny ] != 0 && pInfo[ playerid ][ spawnz ] != 0) { SetPlayerPos(playerid, pInfo[ playerid ][ spawnx ] , pInfo[ playerid ][ spawny ] , pInfo[ playerid ][ spawnz ]); } else { SetPlayerPos(playerid, -2383.4011,2436.8066,1001.1); SetPlayerFacingAngle(playerid, 94.4580); } SetPlayerSkin(playerid, pInfo[playerid][pSkin]); SendClientMessage(playerid, NARANCS, \"Ameddig nincs házad addig az utcán ébredsz!\"); }}else if(pInfo[playerid][pBorton] > 0 && Meghalt[playerid] == 0 && Speec[playerid] == 0){ KillTimer(HourTimer[playerid]); HourTimer[playerid] = SetTimerEx(\"HourJump\", 1000, true, \"i\", playerid); gettime(gOra, gPerc); SetPlayerTime(playerid,gOra,gPerc); BortonTimer[playerid] = SetTimerEx(\"IsPlayerSzabad\", 1000, true, \"u\", playerid); SendClientMessage(playerid, PIROS, \"Még nem töltötted le a büntetésedet! / Kezelés alól léptél ki!\"); SetPlayerSkin(playerid, pInfo[playerid][pSkin]); SetPlayerInterior(playerid, 3), SetPlayerPos(playerid, 2985.0122,1535.7924,43.0559); } else if(Meghalt[playerid] == 1 && Speec[playerid] == 0) { KillTimer(HourTimer[playerid]); HourTimer[playerid] = SetTimerEx(\"HourJump\", 1000, true, \"i\", playerid); SetPlayerSkin(playerid, pInfo[playerid][pSkin]); KillTimer(BortonTimer[playerid]); SetPlayerPos(playerid, 1697.8134,1187.3135,35.2759), SetPlayerInterior(playerid, 5); SendClientMessage(playerid, PIROS, \"* Orvos mondja: Ezt épp, hogy túlélte! Most egy tizenöt napos kezelésen fog részt venni! (( 15 Perc ))\"); pInfo[id][pBorton] = 15 * 60; BortonTimer[playerid] = SetTimerEx(\"IsPlayerSzabad\", 1000, true, \"u\", playerid);}else if(Speec[playerid] == 1){ KillTimer(HourTimer[playerid]); HourTimer[playerid] = SetTimerEx(\"HourJump\", 1000, true, \"i\", playerid); SetPlayerSkin(playerid, pInfo[playerid][pSkin]), AdminSzoliban[playerid] = 0; if( pInfo[ playerid ][ spawnx ] != 0 && pInfo[ playerid ][ spawny ] != 0 && pInfo[ playerid ][ spawnz ] != 0) { SetPlayerPos(playerid, pInfo[ playerid ][ spawnx ] , pInfo[ playerid ][ spawny ] , pInfo[ playerid ][ spawnz ]); } else { SetPlayerPos(playerid, -2383.4011,2436.8066,1001.1); SetPlayerFacingAngle(playerid, 94.4580); } Speec[playerid] = 0;}}else{ SendClientMessage(playerid, PIROS, \"* Ki lettél rúgva... Elõbb be kell jelentkezned utána spawnolhatsz!\");format(S, sizeof(S), \"< Kick > %s kirúgva a Rendszer által | Indok: Nem jelentkezett be spawnolás elõtt...\", Nev(playerid));SendAdminMessage(PIROS, S);Kick(playerid);} return 1; } return 1;}
SetPlayerPos(playerid, -2383.4011,2436.8066,1001.1);SetPlayerFacingAngle(playerid, 94.4580);
if(dialogid == 300){if(response){ if(strlen(inputtext) == 0) { ShowPlayerDialog(playerid, 300, DIALOG_STYLE_INPUT,\"{ffffff}HEX Szín Beállítása\", \"{ffffff}HEX Szín Beállítása: írj be egy HEX színt\\na neved színének megváltoztatásához.{ff0000}(0xHEXAA / FF)\\n{00ffff}(PL: 0x00FFFFAA)\", \"Beállít\",\"Kilépés\"); } SetPlayerColor(playerid, inputtext);}}
error 035: argument type mismatch (argument 2)
SetPlayerColor(playerid, strlen(inputtext));
format(rankt,561,\"Rank 1 - %s\\nRank 2 - %s\\nRank 3 - %s\\nRank 4 - %s\\nRank 5 - %s\\nRank 6 - %s\\nRank 7 - %s\\nRank 8 - %s\\nRank 9 - %s\\nRank 10 - %s\\nRank 11 - %s\\nRank 12 - %s\\n\", dini_Get(GetFaction(fidx(playerid)), \"Rank1\"), dini_Get(GetFaction(fidx(playerid)), \"Rank2\"), dini_Get(GetFaction(fidx(playerid)), \"Rank3\"), dini_Get(GetFaction(fidx(playerid)), \"Rank4\"), dini_Get(GetFaction(fidx(playerid)), \"Rank5\"), dini_Get(GetFaction(fidx(playerid)), \"Rank6\"), dini_Get(GetFaction(fidx(playerid)), \"Rank7\"), dini_Get(GetFaction(fidx(playerid)), \"Rank8\"), dini_Get(GetFaction(fidx(playerid)), \"Rank9\"), dini_Get(GetFaction(fidx(playerid)), \"Rank10\"), dini_Get(GetFaction(fidx(playerid)), \"Rank11\"), dini_Get(GetFaction(fidx(playerid)), \"Rank12\")); FrakcioMuvelet[playerid] = 4; ShowPlayerDialog(playerid,DIA_FRAKCIO,DIALOG_STYLE_LIST,\"Frakció\",rankt,\"Rendben\",\"Kilép\");
D:\\Project\\Sa-Mp\\gamemodes\\TisztaSor.pwn(3688 -- 3689) : error 012: invalid function call, not a valid addressD:\\Project\\Sa-Mp\\gamemodes\\TisztaSor.pwn(3689) : warning 215: expression has no effectD:\\Project\\Sa-Mp\\gamemodes\\TisztaSor.pwn(3689) : error 001: expected token: \";\", but found \")\"D:\\Project\\Sa-Mp\\gamemodes\\TisztaSor.pwn(3689) : error 029: invalid expression, assumed zeroD:\\Project\\Sa-Mp\\gamemodes\\TisztaSor.pwn(3689) : fatal error 107: too many error messages on one line