05.05.2009, 21:28
public OnPlayerStateChange(playerid, newstate, oldstate)
// ... you forgot the oldstate..
it should look like this now![undecided](images/smilies/neutral.gif)
// ... you forgot the oldstate..
it should look like this now
![undecided](images/smilies/neutral.gif)
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT) IT's from my speedo // MUST BE OLDSTATE ????
{
TextDrawHideForPlayer(playerid, Speedo[playerid]);
}
if(newstate == PLAYER_STATE_DRIVER) // then goes new state :P
{
TextDrawHideForPlayer(playerid, Servertime);
}
return 1;
}