How to change timer to check if XP is equal or above...
#3

You should use an array for this, not 4500 switch cases..

Create an array of the score needed for each level, and a string-array for the rank names.

pawn Код:
new rankScore[] = {
20,
45,
70
...
};

new rankNames[][] = {
"Private II",
"Private First Class",
"Specialist",
...
};
Or more ideally use an enum (which is harder to understand for a beginner).
Reply


Messages In This Thread
How to change timer to check if XP is equal or above... - by stormchaser206 - 16.02.2013, 23:32
Re: How to change timer to check if XP is equal or above... - by ReneG - 17.02.2013, 01:09
Re: How to change timer to check if XP is equal or above... - by MP2 - 17.02.2013, 01:13
Re: How to change timer to check if XP is equal or above... - by stormchaser206 - 17.02.2013, 01:22

Forum Jump:


Users browsing this thread: 1 Guest(s)