OnPlayerStateChange not working at all
#5

Not unless you use return.

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
    SendClientMessage(playerid, -1, "You entered a vehicle.");
    return 1;
}

if(newstate == PLAYER_STATE_WHATEVER)
{
    // This will never be called because we returned 1 above. This stops the rest of the code from executing.
}
Reply


Messages In This Thread
OnPlayerStateChange not working at all - by -CaRRoT - 27.05.2012, 06:57
Re: OnPlayerStateChange not working at all - by MP2 - 27.05.2012, 08:22
Re: OnPlayerStateChange not working at all - by Black Axe - 27.05.2012, 08:45
Re: OnPlayerStateChange not working at all - by Virtual1ty - 27.05.2012, 08:49
Re: OnPlayerStateChange not working at all - by MP2 - 27.05.2012, 08:49
Re: OnPlayerStateChange not working at all - by -CaRRoT - 27.05.2012, 09:46

Forum Jump:


Users browsing this thread: 2 Guest(s)