Is this nessesary?
#1

Quote:

forward RemoveDriverFromVehicle(playerid);
public RemoveDriverFromVehicle(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
return 0;
}

if (newkeys & KEY_SECONDARY_ATTACK)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
RemoveDriverFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1; //<--------- is this nessesary ?
}
}

"the return 1; above?
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: 1 Guest(s)