SendAdminMessage problem.
#1

pawn Код:
forward SendAdminMessage(color, string[]);
public SendAdminMessage(color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
}
pawn Код:
BCRP.pwn(90) : error 017: undefined symbol "PlayerInfo"
90:
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
I dont know how to fix it, it works in other commands!
Reply
#2

pawn Код:
if(PlayerInfo[i][pAdmin] >= 1)
Reply
#3

Same error.
Reply
#4

Quote:
Originally Posted by lQs
Посмотреть сообщение
Same error.
Are you sure you are using the correct name? I'm guessing it's probably pInfo instead of PlayerInfo, or something along those lines.
Reply
#5

Im using something like that for ahelp:
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
So its PlayerInfo, pAdmin. Whats the problem then?
Reply
#6

You must of placed the function above the enumeration. Try placing the function at the bottom of your script.
Reply
#7

Okay, fixed. Thanks! (im gonna give you + rep tommorow.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)