SA-MP Forums Archive
Error con textdraw [ERROR:UNMATCHED TILDE] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Error con textdraw [ERROR:UNMATCHED TILDE] (/showthread.php?tid=626429)



Error con textdraw [ERROR:UNMATCHED TILDE] - Romero837 - 14.01.2017

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);



Respuesta: Error con textdraw [ERROR:UNMATCHED TILDE] - Eloy - 15.01.2017

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]); 



Re: Error con textdraw [ERROR:UNMATCHED TILDE] - Romero837 - 16.01.2017

Efectivamente era ese el error, muchнsimas gracias