Oko PlayerTextdrawHide

Započeo Maksim0vic, Februar 20, 2018, 22:33:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Detaljan opis problema:Znaci ubacivao sm brzinometar sve je okej i stalno dobijam error u liniji 15988
Dio skripte:GDE DOBIJAM ERROR
[pawn]if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[5][playerid]);[/pawn]

CEO KOD
[pawn]public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new vozilo = GetPlayerVehicleID(playerid);
    if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
   {
   new string[128];
   if(oldstate-1 && newstate) PlayerTextDrawHide(playerid,
  • [playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[0][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[1][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[1][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[2][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[2][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[3][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[3][playerid]), format(string, sizeof(string), "Gorivo: ~w~%d L", Fuel[GetPlayerVehicleID(playerid)]), PlayerTextDrawSetString(playerid, BRZINOMER[9][playerid], string);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[4][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[4][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[5][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[5][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[6][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[6][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[7][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[7][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[8][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[8][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[9][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[9][playerid]);
       if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[10][playerid]);
       else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[10][playerid]);[/pawn]

oldstate-1
to bi trebalo biti sta?
Software Developer

Citat: Ino42O poslato Februar 20, 2018, 22:34:28 POSLE PODNE
oldstate-1
to bi trebalo biti sta?

Nemam pojma brt tako sm nasao u skripti i samo sam editovao