Error: Unmatched tilde?
#3

I have sometimes come across this issue when I place a character than often represents another 'shortcut'.

Valid shortcuts are:
Код:
~w~ = white
~r~ = red
~g~ = green
~l~ = black
~y~ = yellow
~p~ = pink
~b~ = blue
~n~ = new line
~h~ = lighter color
~k~ = key mapping
So if I do:
pawn Код:
~n~What?
It will normally think that I am trying to do:
pawn Код:
~w~hat?
and will give me an unmatched tilde error. So what I suggest you do, is leave a space between letters that often represent other codes, like so:

pawn Код:
format(str, 64, "Checkpoints:           0%i/10~n~ Warnings:                 %i/3~n~ Time:                  0%i:%s", VM[i][VMCP], VM[i][VMIsp], floatround(VM[i][VMLaikas]/60, floatround_floor), vmsek);
pawn Код:
new str[110], vmsek[4], vmzero;
    if((VM[i][VMLaikas] - floatround(VM[i][VMLaikas] / 60, floatround_floor) * 60) < 10) vmzero = 0;
    format(vmsek, sizeof(vmsek), "%d%i", vmzero, (VM[i][VMLaikas] - (floatround(VM[i][VMLaikas] / 60, floatround_floor) * 60)));
    format(str, sizeof(str), "Checkpoints:           0%i/10~n~ Warnings:                 %i/3~n~ Time:                  0%i:%s", VM[i][VMCP], VM[i][VMIsp], floatround(VM[i][VMLaikas] / 60, floatround_floor), vmsek);
    PlayerTextDrawSetString(i, VMTDInfo[i], str);
Reply


Messages In This Thread
Error: Unmatched tilde? - by iWhite - 22.12.2014, 08:56
Re: Error: Unmatched tilde? - by Sawalha - 22.12.2014, 09:16
Re: Error: Unmatched tilde? - by Threshold - 22.12.2014, 09:22
Re: Error: Unmatched tilde? - by iWhite - 22.12.2014, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)