22.12.2014, 09:22
I have sometimes come across this issue when I place a character than often represents another 'shortcut'.
Valid shortcuts are:
So if I do:
It will normally think that I am trying to do:
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:
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
pawn Код:
~n~What?
pawn Код:
~w~hat?
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);