SA-MP Forums Archive
Pickup help. - 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: Pickup help. (/showthread.php?tid=114613)



Pickup help. - Guso - 20.12.2009

Alright, i dunno what i miss here could somebody tell me?

Код:
new piki;
piki = CreatePickup(1239, 1, 362.1396,173.6584,1008.3828);

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == piki)
{
   GameTextForPlayer(playerid, "~y~Her ligger Jogthedoo", 3500, 1);
	 return 1;
 }
return 0;
}
Gives -
C:\Program Files\Guso\Dvs\LSRP\IK RШR !\V2.pwn(1517) : warning 204: symbol is assigned a value that is never used: "piki"
C:\Program Files\Guso\Dvs\LSRP\IK RШR !\V2.pwn(23691) : error 017: undefined symbol "piki"


Re: Pickup help. - DiddyBop - 20.12.2009

is piki = CreatePickup(1239, 1, 362.1396,173.6584,1008.382; Under ongamemodeinit?

is new piki; at top of script?