Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: LudiYoutuber65 poslato Maj 24, 2021, 16:24:13 POSLE PODNE

Naslov: Pitanje za glad sistem
Poruka od: LudiYoutuber65 poslato Maj 24, 2021, 16:24:13 POSLE PODNE
Problem(error/warning):Uzeo sam glad sistem sa ovog site i sad umjesto crtica želim da uradim da se pokazuju u tdovima,kako?
Deo skripte: [pawn]stock CheckGlad(playerid)
{
    if(GladInfo[playerid][gGlad] == 5)
   {
        PlayerTextDrawSetString(playerid, GTD[playerid], "\
      ~w~\
      ~g~-\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      -");
        PlayerTextDrawShow(playerid, GTD[playerid]);
   }
   else if(GladInfo[playerid][gGlad] == 4)
   {
        PlayerTextDrawSetString(playerid, GTD[playerid], "\
      ~w~\
      -\
      ~n~\
      ~g~-\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      -");
        PlayerTextDrawShow(playerid, GTD[playerid]);
   }
   else if(GladInfo[playerid][gGlad] == 3)
   {
        PlayerTextDrawSetString(playerid, GTD[playerid], "\
      ~w~\
      -\
      ~n~\
      -\
      ~n~\
      ~g~-\
      ~n~\
      -\
      ~n~\
      -");
        PlayerTextDrawShow(playerid, GTD[playerid]);
   }
   else if(GladInfo[playerid][gGlad] == 2)
   {
        PlayerTextDrawSetString(playerid, GTD[playerid], "\
      ~w~\
      -\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      ~g~-\
      ~n~\
      -");
        PlayerTextDrawShow(playerid, GTD[playerid]);
   }
   else if(GladInfo[playerid][gGlad] == 1)
   {
        PlayerTextDrawSetString(playerid, GTD[playerid], "\
      ~w~\
      -\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      ~g~-");
        PlayerTextDrawShow(playerid, GTD[playerid]);
   }
   else if(GladInfo[playerid][gGlad] >= 6)
   {
      GladInfo[playerid][gGlad] = 5;
        PlayerTextDrawSetString(playerid, GTD[playerid], "\
      ~w~\
      ~g~-\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      -\
      ~n~\
      -");
        PlayerTextDrawShow(playerid, GTD[playerid]);
   }
   return 1;
}[/pawn]
Naslov: Odg: Pitanje za glad sistem
Poruka od: LudiYoutuber65 poslato Maj 24, 2021, 19:16:48 POSLE PODNE
Sređeno