Error : Unmatched Tilde
#1

Hi.
I recently came across with this error on a textdraw. (probably after updating my server to 0.3z). The textdraw is all right when I'm on foot, but when I get on a vehicle, instead of the stuff thats supposed to be displayed, "Error : Unmatched Tilde" appears.
Any help would be appreciated.

Код:
format(string, sizeof(string), "~p~Equipment: ~h~%s~n~~p~Cash: ~h~$%s~n~~p~Transport: ~h~%s~n~p~Gas: ~h~%d%%~n~~p~Velocity: ~h~%d KM/H",aWeaponNames[GetPlayerWeapon(i)], number_format(PlayerTemp[i][sm]), GetVehicleName(GetPlayerVehicleID(i)), Gas[GetPlayerVehicleID(i)], floatround(value/600));
Reply
#2

Here is your error:
~n~p~Gas:

Should be:
~n~~p~Gas:
Reply
#3

After "transport", you have this:
pawn Код:
~h~%s~n~p~Gas
You're missing a ~.
Reply
#4

Thanks a lot.
Haven't been into PAWNO for about 6 months so, forgot almost everything.
Testing it now.
Reply
#5

Works.
Thanks again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)