19.03.2009, 20:06
That doesn't answer my question.
Anyway. I searched a little more about PAWN Language and I think theres no way of doing what I want to do.
So, I guess I will just create the ten car mod slots one by one inside the enum
I would like to thanks anyone who tried to help me.
Honestly,
Thanks.
[EDIT]
No. I want an array of Integers, capable of storing 10 numbers.
You can do this:
This is what I needed before, and I guess I can't do that while the integer array is inside an enum.
Anyway. I searched a little more about PAWN Language and I think theres no way of doing what I want to do.
So, I guess I will just create the ten car mod slots one by one inside the enum
I would like to thanks anyone who tried to help me.
Honestly,
Thanks.
[EDIT]
Quote:
Defining max chars if most often used for strings and you don't need it for saving numbers... So It Will be: p_Vehicle[0][mod] = 3 // I think you want to return playerID so insted of 0 put playerid.... cuz this will only work for playerid = 0... So in comparing it will be something as: PAWN Code: if(p_Vehicle[playerid][mod] == 3) { // do something } And replacing mod[10] with just mod |
You can do this:
Код:
new intArrayExample[10]; for(new i = 0; i < 10; i++) intArrayExample[i] = i;