SA-MP Forums Archive
Dynamic Pick Up Problem - 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: Dynamic Pick Up Problem (/showthread.php?tid=275692)



Dynamic Pick Up Problem - Tanush123 - 10.08.2011

Well when i compile i get
pawn Код:
warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpDynamicPickUp")
When i was converting my OnPlayerPickup to ondynamicpickup, ongamemode
pawn Код:
dildo = CreateDynamicPickup(321,23,6047.1099,-3445.2439,65.4950,-1,-1,100);
    parachute = CreateDynamicPickup(371,23,6045.6938,-3447.7227,65.5572,-1,-1,100);
onplayerpickupdynamicpickup
pawn Код:
forward OnPlayerPickUpDynamicPickup(playerid, pickupid);
public OnPlayerPickUpDynamicPickUp(playerid, pickupid)
{
    if(pickupid == dildo) GivePlayerWeapon(playerid,10,9999);
    if(pickupid == parachute) GivePlayerWeapon(playerid,46,9999);
    return 1;
}



Re: Dynamic Pick Up Problem - AndreT - 10.08.2011

You have a simple case error! Check the difference between the forward line and the public line. The public line should be OnPlayerPickUpDynamicPickup!


Re: Dynamic Pick Up Problem - Tanush123 - 10.08.2011

Err i feel embarrassed lol i put OnPlayerPickUpDynamicPickUp and not OnPlayerPickUpDynamicPickup, look at the last 2 letter in my script i put Up lol, thnx btw