Question about arrays?
#7

Interesting.

So I could do something like this as well?
pawn Code:
enum gInfo
{
    Float:g_VehiclePos[4];
}
new GangInfo[MAX_GANGS][gInfo],
    GangVehInfo[MAX_GANGS][MAX_GANG_VEHICLES][gInfo];
   
    GangVehInfo[0][0][g_VehiclePos][0] = 0.0;
    GangVehInfo[0][0][g_VehiclePos][1] = 0.0;
    GangVehInfo[0][0][g_VehiclePos][2] = 0.0;
    GangVehInfo[0][0][g_VehiclePos][3] = 0.0;
Edit: I used this method and it didn't give any compile error as it did with my starting code. Thanks for the information, I did learn something new today.
Reply


Messages In This Thread
Question about arrays? - by AndySedeyn - 11.10.2014, 20:14
Re: Question about arrays? - by kristo - 11.10.2014, 20:30
Re: Question about arrays? - by AndySedeyn - 11.10.2014, 20:32
Re: Question about arrays? - by Pottus - 11.10.2014, 21:19
Re: Question about arrays? - by AndySedeyn - 11.10.2014, 21:42
Re: Question about arrays? - by ThePhenix - 11.10.2014, 22:13
Re: Question about arrays? - by AndySedeyn - 11.10.2014, 22:33
Re: Question about arrays? - by Pottus - 12.10.2014, 08:35

Forum Jump:


Users browsing this thread: 1 Guest(s)