04.01.2013, 16:02
Error:
Line:
Soultions i tried.
Soultion 1:
Error:
Line 52:
The line 52 and the whole error im trying to fix's command :
pawn Код:
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\testcmd.pwn(6) : error 017: undefined symbol "pInfo"
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\testcmd.pwn(6) : error 009: invalid array size (negative, zero or out of bounds)
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Soultion 1:
pawn Код:
new PlayerInfo[MAX_PLAYERS];
pawn Код:
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\testcmd.pwn(52) : error 001: expected token: ")", but found "["
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\testcmd.pwn(52) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\testcmd.pwn(52) : error 001: expected token: ";", but found "]"
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\testcmd.pwn(52) : fatal error 107: too many error messages on one line
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You are not atleast Admin Level 3!");
pawn Код:
CMD:announce(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You are not atleast Admin Level 3!"); //Making Return Message if you're not Admin LeveL 3.
new text[60]; //Making new text.
if(sscanf(params,"s[60]",text))
return SendClientMessage(playerid, COLOR_BRIGHTRED, "USAGE: /announce [text]"); //If you only type /announce this will happen.
GameTextForAll(text,3000,3); //This will show Game Text to all Players.
return 1;
}