[HELP] Pickup Error
#1

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?
Reply
#2

Because you have two { and only one }
Reply
#3

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Deagle)
{
GivePlayerWeapon(playerid, 24, 500); //Give playerid Deagle with 500 ammo
return 1;
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)