13.07.2010, 10:21
(
Последний раз редактировалось Joe_; 13.07.2010 в 10:31.
)
Hello
Well I've been struggling with this for 1~ Hours now, and I can't get it right.
This is an example code of what I'm trying to do.
What I want is to insert a integer value into each of the slots of 'Options' array, inside another array.
So for example:
I want 1 to go into 'Options[0]' and 2 to go into 'Options[1]' (Slot is not the same as value due to array slots starting from 0)
Anybody have a idea?
I understand filling the array using a code like:
But that wouldn't work for what I'm doing.
Just some info:
Line 43-46:
Well I've been struggling with this for 1~ Hours now, and I can't get it right.
This is an example code of what I'm trying to do.
pawn Код:
enum
E_ENUM
{
Options[4]
}
pawn Код:
new
Array[][E_ENUM] =
{
{1, 2, 3, 4}
};
So for example:
I want 1 to go into 'Options[0]' and 2 to go into 'Options[1]' (Slot is not the same as value due to array slots starting from 0)
Anybody have a idea?
I understand filling the array using a code like:
pawn Код:
Array[0][Options][0] = 1;
Just some info:
pawn Код:
:\SA-MPS~1\pawno\script.pwn(45) : warning 227: more initiallers than enum fields
I:\SA-MPS~1\pawno\script.pwn(45) : warning 227: more initiallers than enum fields
pawn Код:
new
Array[][E_ENUM] =
{
{1, 2, 3, 4} // 45
}