03.01.2013, 18:15
Added A New Command Now I Get The Error Below
I Now Get This Error
Please help if you can
Код:
CMD:aduty(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 5) { if(!strcmp(PlayerInfo[playerid][pAdminName], "(null)", true)) { return SendClientMessage(playerid, COLOR_GREY, "You don't have an admin name set. Contact a Head Admin (or higher) first."); } else { switch(PlayerInfo[playerid][pAdminDuty]) { case 0: { Playerinfo[playerid][pAdminDuty] = 1; SetPlayerHealth(playerid, 100000); SetPlayerArmour(playerid, 100000); SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]); SetPlayerHealth(playerid, 500000.0); format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%s) is now on administrative duty.", PlayerInfo[playerid][pAdminName], PlayerInfo[playerid][pNormalName]); } case 1: { PlayerInfo[playerid][pAdminDuty] = 0; SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%s) is now off administrative duty.", PlayerInfo[playerid][pAdminName], PlayerInfo[playerid][pNormalName]); } } submitToAdmins(szMessage, COLOR_HOTORANGE); } } return 1; }
Код:
\BBRPAname2.pwn(37995) : error 017: undefined symbol "Playerinfo" \BBRPAname2.pwn(37995) : warning 215: expression has no effect \BBRPAname2.pwn(37995) : error 001: expected token: ";", but found "]" \BBRPAname2.pwn(37995) : error 029: invalid expression, assumed zero \BBRPAname2.pwn(37995) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.