[SOLVED] Integer array inside an enum
#5

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]

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

No. I want an array of Integers, capable of storing 10 numbers.
You can do this:
Код:
new intArrayExample[10];
for(new i = 0; i < 10; i++) intArrayExample[i] = i;
This is what I needed before, and I guess I can't do that while the integer array is inside an enum.
Reply


Messages In This Thread
[SOLVED] Integer array inside an enum - by -zriptarusk - 18.03.2009, 21:57
Re: Integer array inside an enum - by pen_theGun - 18.03.2009, 22:18
Re: Integer array inside an enum - by Dujma - 18.03.2009, 22:26
Re: Integer array inside an enum - by Google63 - 18.03.2009, 23:29
Re: Integer array inside an enum - by -zriptarusk - 19.03.2009, 20:06
Re: Integer array inside an enum - by Nubotron - 19.03.2009, 20:09
Re: Integer array inside an enum - by Dujma - 19.03.2009, 20:11
Re: Integer array inside an enum - by Dujma - 19.03.2009, 20:20
Re: Integer array inside an enum - by Dujma - 19.03.2009, 20:22
Re: Integer array inside an enum - by Dujma - 19.03.2009, 20:31

Forum Jump:


Users browsing this thread: 2 Guest(s)