[Ajuda] Problema com TextDrawSetString
#1

Eu estou tentando fazer uma textdraw que mostra o nнvel de procurado do player, em outro tуpico me passaram essa base que estб na samp wiki.
pawn Код:
new newtext[41], name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  format(newtext, sizeof(newtext), "Nivel de procurado %s", name);
  TextDrawSetString(nivelprocura, newtext);
  TextDrawShowForPlayer(playerid, nivelprocura);
Entгo edito ela para pegar o nнvel de procurado do player e colocar no local de %s (obs: usei como base do getplayerwantedlevel https://sampwiki.blast.hk/wiki/GetPlayerWantedLevel )
pawn Код:
new newtext[41]
  new wantedlevel;
  wantedlevel = GetPlayerWantedLevel(playerid);
  format(newtext, sizeof(newtext), "Nivel de procurado %s", wantedlevel);
  TextDrawSetString(nivelprocura, newtext);
  TextDrawShowForPlayer(playerid, nivelprocura);
O gm compila sem problemas mas no jogo nгo mostra a textdraw (antes de editar mostrava ela)
Oque coloquei errado no cуdigo?
Reply


Messages In This Thread
Problema com TextDrawSetString - by PedroAuditore - 15.01.2014, 14:03
Re: Problema com TextDrawSetString - by darkxdll - 15.01.2014, 14:11
Re: Problema com TextDrawSetString - by PedroAuditore - 15.01.2014, 14:23
Re: Problema com TextDrawSetString - by darkxdll - 15.01.2014, 14:35
Re: Problema com TextDrawSetString - by CharlieBrown - 15.01.2014, 14:43
Re: Problema com TextDrawSetString - by PedroAuditore - 15.01.2014, 14:51
Re: Problema com TextDrawSetString - by darkxdll - 15.01.2014, 15:16
Re: Problema com TextDrawSetString - by PedroAuditore - 15.01.2014, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)