Dynamic Pick Up Problem
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)