14.12.2013, 13:55
Hello guys,
I'm having a bit of a strugle with my switch, basicly what i want is when the exp case is between 0 and 500 it will show
"amount of exp/500" but i cant seem to get the structure right.
What would be the correct way to do this?
thanks.
I'm having a bit of a strugle with my switch, basicly what i want is when the exp case is between 0 and 500 it will show
"amount of exp/500" but i cant seem to get the structure right.
pawn Код:
switch(User[playerid][USER_EXP])
{
case 0: format(InfoString, sizeof(InfoString), "Exp: ~w~%d/500", tdexp) && PlayerTextDrawSetString(playerid, exp[playerid], InfoString);
case 500: format(InfoString, sizeof(InfoString), "Exp: ~w~%d/1500", tdexp) && PlayerTextDrawSetString(playerid, exp[playerid], InfoString);
}
//I tried stuff like
case 0 || 500:
//But i tested it and it won't work, i also checked the wiki for this but no help.
thanks.