Weird crash, if I add something
#8

Quote:
Originally Posted by GazaWeSay
Посмотреть сообщение
pawn Код:
public DashUpdate(playerid)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
      new vehid = GetPlayerVehicleID(playerid);
      new estring[7];
      switch(EngineStatus[vehid])
      {
         case 0: estring = "Off";
         case 1: estring = "On";
         default: estring = "Broken";
      }
      new tstring[300];
      format(tstring,sizeof(tstring),"Engine: %s~n~Fuel: %d~n~Speed: %d KM" , estring, Fuel[vehid], GetVehicleSpeed(vehid));
      TextDrawSetString(Dash[playerid], tstring);
      TextDrawHideForPlayer(playerid,Dash[playerid]);
      TextDrawShowForPlayer(playerid,Dash[playerid]);
    }
    else
    {
       TextDrawHideForPlayer(playerid,Dash[playerid]);
       KillTimer(DashUpdate[playerid]);
    }
    return 1;
}
If you can read the thread, it says the problem has been fixed.

And the code you posted would not work anyways.
Reply


Messages In This Thread
Weird crash, if I add something - by Memoryz - 30.09.2010, 22:39
Re: Weird crash, if I add something - by -Sneaky- - 30.09.2010, 22:55
Re: Weird crash, if I add something - by [XST]O_x - 30.09.2010, 22:56
Re: Weird crash, if I add something - by -Sneaky- - 30.09.2010, 23:01
Re: Weird crash, if I add something - by [XST]O_x - 30.09.2010, 23:05
Re: Weird crash, if I add something - by Memoryz - 30.09.2010, 23:07
Re: Weird crash, if I add something - by -Sneaky- - 30.09.2010, 23:07
Re: Weird crash, if I add something - by Memoryz - 01.10.2010, 00:47

Forum Jump:


Users browsing this thread: 4 Guest(s)