05.02.2012, 16:10
Quote:
|
I know you're finished now, but I wanna give you a little tip:
Change this: ... Sometimes, it may confuse the server, and also, else-if would be better at this place... ![]() 'Cause I heard bad experience about forgetting the else-if and taking instead only if!! |
I would recommend using switch, a lot easier to read.
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch(pickupid)
{
case PICKUP_SHOTGUN:
{
GameTextForPlayer(playerid, "~w~You Picked up the ShotGun", 5000, 5);
GivePlayerWeapon(playerid,27,500);
return 1;
}
default: return 1;
}
}



