Arrays
#1

Hi,
I need to make an array like that:
PHP Code:
new Array[number][paths][] = {
   {
float,float,string[],string[]}
}; 
Is it real? I don't know how make it. And you?
Reply
#2

The easiest way is probably to use an enum

pawn Code:
enum arrayenum
{
    float1,
        float2,
        string1[50], //50 = size
        string2[50] //50 = size
}
new Array[][arrayenum] =
{
    {1.412, 13.321, "stringie", "stringie2"},
    {4.442, 23.151, "lolstring", "lolstring2"}
};
That's just an example.
Reply
#3

Thanks you I really forgot about enum's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)