error 017: undefined symbol - 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: error 017: undefined symbol (
/showthread.php?tid=365236)
error 017: undefined symbol -
Andrew163 - 02.08.2012
Help fix the error.
Код:
D:\Games\SAMP сервер\SampDM\filterscripts\Script.pwn(314) : error 017: undefined symbol "Bank"
pawn Код:
{
if(pickupid == Bank)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1480.7194,-1765.2272,18.7958);//
}
return 1;
}
Re: error 017: undefined symbol -
oKzrh - 02.08.2012
You haven't declared such a variable called "Bank".
Try adding "new Bank" to the top of your script (under your includes, defines, etc.. Where there should be some more variables).
Also, assign the pickup (CreatePickup) to the Bank variable like so:
pawn Код:
Bank = CreatePickup(...);
Re: error 017: undefined symbol -
Andrew163 - 02.08.2012
public OnFilterScriptExit()
Код:
Bank = CreatePickup(1274,23,1481.0802,-1770.3795,18.7958);
public OnPlayerPickUpPickup(playerid, pickupid)
Код:
{
if(pickupid == Bank)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 4546.9433, -2005.5704, 22.5492);//
}
return 1;
}
Re: error 017: undefined symbol -
oKzrh - 02.08.2012
Is it working now?
Is the "new Bank;" at the top (Above all of the publics).
Re: error 017: undefined symbol -
Andrew163 - 03.08.2012
yes "new Bank," in up the script,in at the bottom of intsludes and
Код:
#if defined FILTERSTSRIPT