weapon pickup not showing but is there.
#9

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
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!!
There is absolutely no difference in that case.

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


Messages In This Thread
weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 15:08
Re: weapon pickup not showing but is there. - by Finn - 05.02.2012, 15:15
Re: weapon pickup not showing but is there. - by niels44 - 05.02.2012, 15:20
Re: weapon pickup not showing but is there. - by Finn - 05.02.2012, 15:21
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 15:23
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 15:47
Re: weapon pickup not showing but is there. - by Twisted_Insane - 05.02.2012, 15:53
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 16:08
Re: weapon pickup not showing but is there. - by Finn - 05.02.2012, 16:10
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)