SA-MP Forums Archive
Error: Unmatched Tilde - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error: Unmatched Tilde (/showthread.php?tid=664721)



Error: Unmatched Tilde - mmlinaric - 09.03.2019

Код HTML:
UpdatePlataTD( playerid ) {
    new stringic[ 20 ];
	format( stringic, sizeof( stringic ), "~r~Plata: ~w~%d~g~$", PlayerInfo[ playerid ][ xPlatniRacun ] );
	PlayerTextDrawSetString( playerid, PlataIgraca[ playerid ], stringic );
}
After "xPlatniRacun" update, I got "Error: Unmatched Tilde" error.
I know that I missed ~ somewhere, but I don't know where.
Thanks for help!


Re: Error: Unmatched Tilde - UFF - 09.03.2019

Show your textdraw code or try to increase the string size!


Re: Error: Unmatched Tilde - AlamoTR - 09.03.2019

increase your string size.
Код:
UpdatePlataTD(playerid) 
{
        new stringic[50];
	format(stringic, sizeof(stringic), "~r~Plata: ~w~%d~g~$", PlayerInfo[playerid][xPlatniRacun]);
	PlayerTextDrawSetString(playerid, PlataIgraca[playerid], stringic);
}



Re: Error: Unmatched Tilde - mmlinaric - 09.03.2019

It is working now. Thank you guys.