01.07.2014, 11:52
Quote:
Код:
CMD:adcc(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) //Change this { new strg[128]; for(new i = 0; i < 200; i++) SendClientMessageToAll(-1," "); format(strg, sizeof strg, "Admininstrator has cleared the chat!"); SendClientMessageToAll(COLOR_LIGHTBLUE, strg); } return 1; } Код:
CMD:admins(playerid, params[]) { new pname[MAX_PLAYER_NAME], string[60],counter=0; for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] >= 1) { counter+=1; GetPlayerName(i, pname, sizeof(pname)); format(string, sizeof(string), "Admin: %s ID: %d", pname, i); } } } if(counter != 0) { SendClientMessage(playerid, COLOR_WHITE, string); } else { SendClientMessage(playerid, COLOR_WHITE, "No Admins are Online at the moment."); return 1; } return 1; } |
PHP код:
C:\Users\Matt\Desktop\SAMP\PJS\gamemodes\PJS.pwn(5455) : error 017: undefined symbol "pAdmin"
C:\Users\Matt\Desktop\SAMP\PJS\gamemodes\PJS.pwn(5485) : error 017: undefined symbol "pAdmin"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.