error 017: undefined symbol
#1

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;
}
Reply
#2

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(...);
Reply
#3

Код:
new Bank;
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;
}
Reply
#4

Is it working now?
Is the "new Bank;" at the top (Above all of the publics).
Reply
#5

yes "new Bank," in up the script,in at the bottom of intsludes and
Код:
#if defined FILTERSTSRIPT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)