Error undefined symbol "playerid" - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error undefined symbol "playerid" (
/showthread.php?tid=259965)
Error undefined symbol "playerid" -
SamyRomafia - 06.06.2011
Код:
C:\Users\Samy\Desktop\DSR Clan\gamemodes\DSRCLAN.pwn(7579) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
if(Italian[playerid] == 1) SendClientMessageToAll(WHITE, "Bla Bla");
Re: Error undefined symbol "playerid" -
Mean - 06.06.2011
And how about posting the full callback?
Probbably the callback you're using this doesn't support "playerid" (for example OnGameModeInit( ) ).
Re: Error undefined symbol "playerid" -
Gertin - 06.06.2011
Show we that forward .
Re: Error undefined symbol "playerid" -
SamyRomafia - 06.06.2011
Forward? I have only this:
pawn Код:
new
English[MAX_PLAYERS],
Italian[MAX_PLAYERS];
Re: Error undefined symbol "playerid" -
SamyRomafia - 06.06.2011
Up Anyone can help me?
AW: Error undefined symbol "playerid" -
Julian12345 - 06.06.2011
Post the callback, as Mean said.
AW: Error undefined symbol "playerid" -
Gauloises - 06.06.2011
Код:
new Italian[MAX_PLAYERS];
new English[MAX_PLAYERS];
if(Italian[playerid] == 1) {
SendClientMessageToAll(WHITE, "Bla Bla");
}
if(English[playerid] == 1) {
SendClientMessageToAll(NAWBS, "Open your damn eyes!");
}
...return 1;
Re: Error undefined symbol "playerid" -
SamyRomafia - 07.06.2011
Ah Sorry
I don't stand so good
Look this:
pawn Код:
public A1()
{
if(Italian[playerid] == 1) SendClientMessage(WHITE, "Ai gasit vrun codat?!Apai scrie ( /report [id] [reason] )");
An2 = SetTimer("A2", 450000, 1);
KillTimer(An1);
return 1;
}
Re: Error undefined symbol "playerid" -
Skylar Paul - 07.06.2011
Quote:
Originally Posted by SamyRomafia
Ah Sorry I don't stand so good
Look this:
pawn Код:
public A1() { if(Italian[playerid] == 1) SendClientMessage(WHITE, "Ai gasit vrun codat?!Apai scrie ( /report [id] [reason] )");
An2 = SetTimer("A2", 450000, 1); KillTimer(An1); return 1; }
|
pawn Код:
forward A1(playerid); //At the top of your script you should have "forward A1(); replace that with this.
public A1(playerid)
{
if(Italian[playerid] == 1) SendClientMessage(WHITE, "Ai gasit vrun codat?!Apai scrie ( /report [id] [reason] )");
An2 = SetTimer("A2", 450000, 1);
KillTimer(An1);
return 1;
}