Error help.
#1

Error:
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)
Line:
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Soultions i tried.

Soultion 1:

pawn Код:
new PlayerInfo[MAX_PLAYERS];
Error:
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
Line 52:
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You are not atleast Admin Level 3!");
The line 52 and the whole error im trying to fix's command :
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;
}
Reply
#2

Come on guys please help me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)