C:\Users\user\Desktop\SAMP Server\Everything World\gamemodes\EverythingWorldTwoBeta.pwn(1187) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickupPickup") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
|
Originally Posted by [mad
MLK (dino-host.net) ]
i keep getting this? Код:
C:\Users\user\Desktop\SAMP Server\Everything World\gamemodes\EverythingWorldTwoBeta.pwn(1187) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickupPickup") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
|
Originally Posted by [mad
MLK (dino-host.net) ]
i know but since when did you have to forward it lol |
|
Originally Posted by [mad
MLK (dino-host.net) ]
Yea that worked, Thanks, BTW the wiki needs fixing as thats were i got it from. |
public OnPlayerPickupPickup(playerid, pickupid)
{
if(pickupid == mypickup) // Check that the pickup ID of the pickup they picked up is mypickup
{
// It is
SendClientMessage(playerid, 0xFFFFFFFF, "You received $10000!"); // Message the player
GivePlayerMoney(playerid, 10000); // Give the player the money
}
else if (pickupid == (some other pickup))
{
// Another pickup, do something else
}
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == mypickup) // Check that the pickup ID of the pickup they picked up is mypickup
{
// It is
SendClientMessage(playerid, 0xFFFFFFFF, "You received $10000!"); // Message the player
GivePlayerMoney(playerid, 10000); // Give the player the money
}
else if (pickupid == (some other pickup))
{
// Another pickup, do something else
}
return 1;
}