Error con textdraw [ERROR:UNMATCHED TILDE]
#1

Buenas tardes

Es que tratando de hacer un PlayerTextdraw donde muestra las estadнsticas, usando obviamente PlayerTexdrawSetString pero me sale un error al poner el servidor online y entrar.

Basicamente es que no muestra la informaciуn del textdraw, solo muestra un "ERROR:Unmatched TILDE".

El string que uso es este

Код:
new string[87];
format(string,sizeof(string),"~w~Asesinatos~g~: ~w~%d   ~w~Muertes~r~: ~w~%d  ~w~Ratio~g~: ~w~%.3f  ~w~Nivel~r~: ~w~%s  ~w~Clan~r~: ~w~%s",PlayerInfo[playerid][Kills],PlayerInfo[playerid][Deaths],Ratio,PlayerInfo[playerid][Level],GangInfo[PlayerInfo[playerid][Clan]][GANG_NAME]);
PlayerTextDrawSetString(playerid,TextoStatsUser, string);
Reply
#2

Tenias el especifcador de Nivel como un string, supongo que lo tienes como un Integer
Asн lo tienes

PHP код:
format(string,sizeof(string),"~w~Asesinatos~g~: ~w~%d   ~w~Muertes~r~: ~w~%d  ~w~Ratio~g~: ~w~%.3f  ~w~Nivel~r~: ~w~%s  ~w~Clan~r~: ~w~%s",PlayerInfo[playerid][Kills],PlayerInfo[playerid][Deaths],Ratio,PlayerInfo[playerid][Level],GangInfo[PlayerInfo[playerid][Clan]][GANG_NAME]); 
Prueba con este

PHP код:
format(string,sizeof(string),"~w~Asesinatos~g~: ~w~%d   ~w~Muertes~r~: ~w~%d  ~w~Ratio~g~: ~w~%.3f  ~w~Nivel~r~: ~w~%d  ~w~Clan~r~: ~w~%s",PlayerInfo[playerid][Kills],PlayerInfo[playerid][Deaths],Ratio,PlayerInfo[playerid][Level],GangInfo[PlayerInfo[playerid][Clan]][GANG_NAME]); 
Reply
#3

Efectivamente era ese el error, muchнsimas gracias
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)