dcmd_asetcolor(playerid,params[]) {if(PlayerInfo[playerid][Level] >= 2) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) { SendClientMessage(playerid, red, \"Használat: /asetcolor [playerid] [színKód]\"); return SendClientMessage(playerid, red, \"Szín Kódok: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=rózsaszin\");}new player1 = strval(tmp), Colour = strval(tmp2), string[128], colour[24];if(Colour > 9) return SendClientMessage(playerid, red, \"Szín Kódok: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=rózsaszin\");if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { switch (Colour) { case 0: { SetPlayerColor(player1,black); colour = \"fekete\"; } case 1: { SetPlayerColor(player1,COLOR_WHITE); colour = \"fehér\"; } case 2: { SetPlayerColor(player1,red); colour = \"piros\"; } case 3: { SetPlayerColor(player1,orange); colour = \"narancs\"; } case 4: { SetPlayerColor(player1,orange); colour = \"sárga\"; } case 5: { SetPlayerColor(player1,COLOR_GREEN1); colour = \"zöld\"; } case 6: { SetPlayerColor(player1,COLOR_BLUE); colour = \"Blue\"; } case 7: { SetPlayerColor(player1,COLOR_PURPLE); colour = \"lila\"; } case 8: { SetPlayerColor(player1,COLOR_BROWN); colour = \"barna\"; } case 9: { SetPlayerColor(player1,COLOR_PINK); colour = \"rózsaszín\"; } } if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította a színed \'%s\'-re \", pName(playerid), colour); SendClientMessage(player1,blue,string); } format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\" a szinét \'%s\'-re \", pName(player1), colour); return SendClientMessage(playerid,blue,string); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\");} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\");
dcmd_acarcolor(playerid,params[]) {if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); tmp3 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !strlen(tmp3) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /acarcolornew player1 = strval(tmp), colour1, colour2, string[128];if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3);if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { if(IsPlayerInAnyVehicle(player1)) { format(string, sizeof(string), \"Te megváltoztattad kocsi szinét erre \\\"%s\'s\\\" %s to \'%d,%d\'\", pName(player1), VehicleNames[GetVehicleModel(GetPlayerVehicleID(player1))-400], colour1, colour2 ); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" megváltoztatta kocsid szinét erre %s to \'%d,%d\'\'\", pName(playerid), VehicleNames[GetVehicleModel(GetPlayerVehicleID(player1))-400], colour1, colour2 ); SendClientMessage(player1,blue,string); } return ChangeVehicleColor(GetPlayerVehicleID(player1), colour1, colour2); } else return SendClientMessage(playerid,red,\"HIBA: Játékos nincs jármûben\"); } else return SendClientMessage(playerid,red,\"HIBA: Játékos nincs csatlakozva\");} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\");}
if(PlayerInfo[playerid][Level] >= 0)
dcmd_setcolor(playerid,params[]){new tmp[95], Index; tmp = strtok(params,Index); if(!strlen(tmp) || !IsNumeric(tmp) || !(1 < strval(tmp) < 9)){ SendClientMessage(playerid, red, \"Használat: /setcolor [színKód]\"); return SendClientMessage(playerid, red, \"Szín Kódok: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=rózsaszin\");}new Colour = strval(tmp), colour[10];switch (Colour){case 0: { SetPlayerColor(playerid,black); colour = \"fekete\"; }case 1: { SetPlayerColor(playerid,COLOR_WHITE); colour = \"fehér\"; }case 2: { SetPlayerColor(playerid,red); colour = \"piros\"; }case 3: { SetPlayerColor(playerid,orange); colour = \"narancs\"; }case 4: { SetPlayerColor(playerid,orange); colour = \"sárga\"; }case 5: { SetPlayerColor(playerid,COLOR_GREEN1); colour = \"zöld\"; }case 6: { SetPlayerColor(playerid,COLOR_BLUE); colour = \"kék\"; }case 7: { SetPlayerColor(playerid,COLOR_PURPLE); colour = \"lila\"; }case 8: { SetPlayerColor(playerid,COLOR_BROWN); colour = \"barna\"; }case 9: { SetPlayerColor(playerid,COLOR_PINK); colour = \"rózsaszín\"; }}format(tmp, sizeof(tmp), \"Te átállítottad a szined \'%s\'-re\", pName(playerid), colour);return SendClientMessage(playerid,blue,tmp);}
C:\\Users\\Zsolti\\Desktop\\asder.pwn(56) : error 017: undefined symbol \"strtok\"C:\\Users\\Zsolti\\Desktop\\asder.pwn(56) : error 033: array must be indexed (variable \"tmp\")C:\\Users\\Zsolti\\Desktop\\asder.pwn(57) : error 017: undefined symbol \"IsNumeric\"C:\\Users\\Zsolti\\Desktop\\asder.pwn(76) : error 017: undefined symbol \"pName\"C:\\Users\\Zsolti\\Desktop\\asder.pwn(79) : warning 225: unreachable codeC:\\Users\\Zsolti\\Desktop\\asder.pwn(79) : warning 217: loose indentationC:\\Users\\Zsolti\\Desktop\\asder.pwn(56) : warning 203: symbol is never used: \"Index\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase