enum gInfo
{
Float:g_VehiclePos[MAX_GANG_VEHICLES][4],
}
new GangInfo[MAX_GANGS][gInfo];
enum gInfo
{
Float:g_VehiclePosX[MAX_GANG_VEHICLES],
Float:g_VehiclePosY[MAX_GANG_VEHICLES],
Float:g_VehiclePosZ[MAX_GANG_VEHICLES],
Float:g_VehiclePosA[MAX_GANG_VEHICLES],
}
new GangInfo[MAX_GANGS][gInfo];
No, sadly pawn only supports 3-dimensional arrays. You would have to do it like this:
pawn Code:
|
No, sadly pawn only supports 3-dimensional arrays. You would have to do it like this:
pawn Code:
|
#include <a_samp>
#include <ppg>
enum etest
{
test1[3],
test2[3],
test3[3],
}
new test[3][3][etest];
main() {
test[0][0][test1][0] = 1;
test[0][0][test1][1] = 2;
test[0][0][test1][2] = 3;
printf("%i,%i,%i", test[0][0][test1][0], test[0][0][test1][1], test[0][0][test1][2]);
}
enum gInfo
{
Float:g_VehiclePos[4],
}
new GangInfo[MAX_GANGS][MAX_GANG_VEHICLES][gInfo];
GangInfo[0][0][g_VehiclePos][0] = 343.1;
GangInfo[0][0][g_VehiclePos][1] = 563.1;
GangInfo[0][0][g_VehiclePos][2] = 73.1;
GangInfo[0][0][g_VehiclePos][3] = 3.1;
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;
enum gInfo
{
Float:g_VehiclePosX,
Float:g_VehiclePosY,
Float:g_VehiclePosZ,
}
enum vehicle_info {
object_id,
vehicle_id,
medit_modelid,
Float:ox,
Float:oy,
Float:oz,
Float:rx,
Float:ry,
Float:rz,
Material_Index[MAX_MATERIAL_INDEX],
Material_Color[MAX_MATERIAL_INDEX],
usetext,
Material_FontFace,
Material_FontSize,
Material_FontBold,
Material_FontColor,
Material_BackColor,
Material_Alignment,
Material_TextFontSize
}
// Needs to be created outside of the ENUM due to limitations
new Material_Veh_Text[MAX_PLAYERS][MAX_VEH_OBJECTS][64];
// Vehicle object list for each player
new vehicles[MAX_PLAYERS][MAX_VEH_OBJECTS][vehicle_info];