Counting up
#5

I did it

pawn Код:
DrivingTheoryPoints[playerid]++;
format(string, sizeof(string), "%i points",DrivingTheoryPoints[playerid]);
SendClientMessage(playerid, COLOR_RED, string);


//The second code
new prhase[4];
switch(DrivingTheoryPoints[playerid])
{
    case 0: format(prhase,4,"0");
    case 1: format(prhase,4,"20");
    case 2: format(prhase,4,"40");
    case 3: format(prhase,4,"60");
    case 4: format(prhase,4,"80");
    case 5: format(prhase,4,"100");
}
format(string, sizeof(string), "%s points",prhase);
I hope that i have helped
Reply


Messages In This Thread
Counting up - by Ice-cup - 04.02.2011, 18:11
Re: Counting up - by Ice-cup - 06.02.2011, 09:05
Re: Counting up - by MadeMan - 06.02.2011, 10:12
Re: Counting up - by Ice-cup - 06.02.2011, 10:34
Re: Counting up - by rjjj - 06.02.2011, 10:42

Forum Jump:


Users browsing this thread: 5 Guest(s)