04.02.2011, 18:11
Код:
I want to make a system that if you enter a good answer you get 1 point, this points stack up and form a result. At the position where an answer is given it says: DrivingTheoryPoints[playerid] ++; format(string, sizeof(string), "%s points",DrivingTheoryPoints[playerid]); SendClientMessage(playerid, COLOR_RED, string);
Код:
switch(DrivingTheoryPoints[playerid]) { case 0: ttext = "0"; case 1: ttext = "20"; case 2: ttext = "40"; case 3: ttext = "60"; case 4: ttext = "80"; case 5: ttext = "100"; } format(string, sizeof(string), "%s points",ttext);
Both formats give wrong outcomes (and the first format gives nothing).