these states do not work
#5

Add a print to debug what's happening.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    printf("%d - %d", newstate, oldstate);
    fVehSpeed[playerid] = 0.0;
    if(oldstate != 4 && newstate == 4)
    {
        SCM(playerid,-1,"sales del vehiculo");
    }
    if(oldstate != 5 && newstate == 5)
    {
        SCM(playerid,-1,"entras del vehiculo conductor");
    }
    if(oldstate != 6 && newstate == 6)
    {
        SCM(playerid,-1,"entras al vehiculo pasajero");
    }
    return 1;
}
Then check and see what it inputs on the server console when you change into the certain states.
Reply


Messages In This Thread
these states do not work - by Thewin - 17.07.2014, 04:36
Re: these states do not work - by Onfroi - 17.07.2014, 04:45
Re: these states do not work - by Jack_Leslie - 17.07.2014, 05:07
Respuesta: these states do not work - by Thewin - 17.07.2014, 05:25
Re: these states do not work - by Jack_Leslie - 17.07.2014, 05:29
Respuesta: these states do not work - by Thewin - 17.07.2014, 05:47
Re: these states do not work - by Jack_Leslie - 17.07.2014, 05:52
Respuesta: these states do not work - by Thewin - 17.07.2014, 06:03
Re: these states do not work - by Jack_Leslie - 17.07.2014, 08:23
Re: these states do not work - by Konstantinos - 17.07.2014, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)