TextDraw will not be hided
#2

public OnPlayerStateChange(playerid, newstate, oldstate)

// ... you forgot the oldstate..
it should look like this now

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;
}
Reply


Messages In This Thread
TextDraw will not be hided - by Bearfist - 05.05.2009, 20:28
Re: TextDraw will not be hided - by Divine - 05.05.2009, 21:28
Re: TextDraw will not be hided - by Rks25 - 05.05.2009, 21:46
Re: TextDraw will not be hided - by Weirdosport - 05.05.2009, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)