[HELP!] Define 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: [HELP!] Define playerid (
/showthread.php?tid=208415)
[HELP!] Define playerid -
Jack_Rocker - 08.01.2011
SOLVED
Basically I put this (line 56 btw):
Код:
SetPVarInt(playerid, "top", 0);
in the OnFilterScriptInit() callback and the error recieved is
Код:
C:\Users\Jack\Desktop\samp\filterscripts\lspdlift.pwn(56) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
any idea how to define 'playerid'?
Thanks, Jack_Rocker
Re: [HELP!] Define playerid -
Kwarde - 08.01.2011
In OnFilterScriptInit there is no playerid indeed.
USe:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++){
SetPVarInt(i, "top", 0);
}
Re: [HELP!] Define playerid -
Jack_Rocker - 08.01.2011
Thanks