[HELP] Pickup Error - 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: [HELP] Pickup Error (
/showthread.php?tid=91401)
[HELP] Pickup Error -
Smiths - 14.08.2009
I got 2 error in this code
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Deagle)
{
{
GivePlayerWeapon(playerid, 24, 500); //Give playerid Deagle with 500 ammo
return 1;
}
Why?
Re: [HELP] Pickup Error -
Devine - 14.08.2009
Because you have two { and only one }
Re: [HELP] Pickup Error -
brett7 - 14.08.2009
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Deagle)
{
GivePlayerWeapon(playerid, 24, 500); //Give playerid Deagle with 500 ammo
return 1;
}
return 1;
}