How would I do this in an array or static const?
#1

I've got a script in mind but I'm not sure how I would go about making this. I want a little script to return certain IDs, skin IDs, according to the player's information.

Let's say I have a players "origin", and "age".
Then I have something like this:
pawn Код:
// Origin, Age, Skin ID
{"African American", {16..25}, {1}}; // 16..25 as in ranging from through to 25
{"African American", {16..25}, {22}};
{"Caucasian", {25..35}, {23}};
The players origin would be African American, and the Age would be 22. How would I loop through the information above (and would it be an array, static const..?), and return the last number, skin id?
Reply


Messages In This Thread
How would I do this in an array or static const? - by Jack_Leslie - 22.06.2014, 06:31
Re: How would I do this in an array or static const? - by Campbell- - 22.06.2014, 09:44
Re: How would I do this in an array or static const? - by Jack_Leslie - 22.06.2014, 10:39
AW: How would I do this in an array or static const? - by Campbell- - 22.06.2014, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)