Is this nessesary?
#3

pawn Код:
if (newkeys & KEY_SECONDARY_ATTACK)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        RemovePlayerFromVehicle(playerid);
        TogglePlayerControllable(playerid, 1);
    }
}
return 1 is not exactly needed there, and why are you doing the same thing 2 times?

if u want more code in key_secondary attack, then return 1 might be needed
Reply


Messages In This Thread
Is this nessesary? - by euRo - 21.06.2011, 15:32
Re: Is this nessesary? - by PCheriyan007 - 21.06.2011, 15:38
Re: Is this nessesary? - by Donya - 21.06.2011, 15:50
Re: Is this nessesary? - by euRo - 21.06.2011, 16:00
Re: Is this nessesary? - by PCheriyan007 - 21.06.2011, 16:03
Re: Is this nessesary? - by Donya - 21.06.2011, 16:16
Re: Is this nessesary? - by euRo - 21.06.2011, 17:19
Re: Is this nessesary? - by Donya - 21.06.2011, 17:38

Forum Jump:


Users browsing this thread: 3 Guest(s)