SendAdminMessage problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendAdminMessage problem. (
/showthread.php?tid=434525)
SendAdminMessage problem. -
lQs - 03.05.2013
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!
Re: SendAdminMessage problem. -
RevolutionaryGaming - 03.05.2013
pawn Код:
if(PlayerInfo[i][pAdmin] >= 1)
Re: SendAdminMessage problem. -
lQs - 03.05.2013
Same error.
Re: SendAdminMessage problem. -
RevolutionaryGaming - 03.05.2013
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.
Re: SendAdminMessage problem. -
lQs - 03.05.2013
Im using something like that for ahelp:
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
So its PlayerInfo, pAdmin. Whats the problem then?
Re: SendAdminMessage problem. -
RevolutionaryGaming - 03.05.2013
You must of placed the function above the enumeration. Try placing the function at the bottom of your script.
Re: SendAdminMessage problem. -
lQs - 03.05.2013
Okay, fixed. Thanks! (im gonna give you + rep tommorow.)