Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: ... poslato April 14, 2018, 21:15:04 POSLE PODNE

Naslov: TD info
Poruka od: ... poslato April 14, 2018, 21:15:04 POSLE PODNE
Problem(error/warning): Kad compile NJ mod ovi mi errori jebu nmg da skontam sta fali ? uvijek mi je error "error 035: argument type mismatch (argument 2)" na svemu nemal
Dio skripte: [pawn]}
/*                              PLAYER INFO                                   */
stock ShowPlayerInfo(playerid, bool:show=true)
{
   if (show)
   {
      for (new i = 0; i < sizeof PlayerInfo_TD; i ++);
          TextDrawShowForPlayer(playerid, PlayerInfo_TD);

      static
         string_name[MAX_PLAYER_NAME],
         string_level[20],
         string_exp[20],

      new
          exp_value = (PI[playerid][pNivo] + 1) * 4;

      
      format(string_name, sizeof string_name, "%s", Ime_Igraca(playerid));
      PlayerTextDrawSetString(playerid, PlayerInfo_TD[playerid][4], string_name);

        PlayerTextDrawHide(playerid, PlayerInfo_TD[playerid][5]);
      PlayerTextDrawSetPreviewModel(playerid, PlayerInfo_TD[playerid][5], GetPlayerSkin(playerid));

      format(string_level, sizeof string_level, "LEVEL:_%d", PI[playerid][pNivo]);
      PlayerTextDrawSetString(playerid, PlayerInfo_TD[playerid][15], string_level);

      format(string_exp, sizeof string_exp, "EXP:_%d/%d", PI[playerid][pRespekti], exp_value);
      PlayerTextDrawSetString(playerid, PlayerInfo_TD[playerid][14], string_exp);


      for (new i = 0; i < 16; i ++)
          PlayerTextDrawShow(playerid, PlayerInfo_TD[playerid]);
   }
   else
   {
       for (new i = 0; i < sizeof PlayerInfo_TD; i ++)
          TextDrawHideForPlayer(playerid, PlayerInfo_TD);
   }
   return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //
Naslov: Odg: TD info
Poruka od: Łuk@ poslato April 15, 2018, 13:51:56 POSLE PODNE
pravila