Error Not to Sure Why HELP!
#7

Added A New Command Now I Get The Error Below

Код:
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;
}
I Now Get This Error

Код:
\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.
Please help if you can
Reply


Messages In This Thread
Error Not to Sure Why HELP! - by DJean1 - 03.01.2013, 17:47
Re: Error Not to Sure Why HELP! - by InfiniTy. - 03.01.2013, 17:49
Re: Error Not to Sure Why HELP! - by DJean1 - 03.01.2013, 17:50
Re: Error Not to Sure Why HELP! - by aslan890 - 03.01.2013, 17:53
Re : Error Not to Sure Why HELP! - by DaRk_RaiN - 03.01.2013, 17:55
Re: Error Not to Sure Why HELP! - by DJean1 - 03.01.2013, 17:57
Re: Error Not to Sure Why HELP! - by DJean1 - 03.01.2013, 18:15
Re: Error Not to Sure Why HELP! - by Babul - 03.01.2013, 18:56
Re: Error Not to Sure Why HELP! - by DJean1 - 03.01.2013, 19:31

Forum Jump:


Users browsing this thread: 2 Guest(s)