Question about arrays?
#8

Instead of doing that I would just do this.

pawn Code:
enum gInfo
{
    Float:g_VehiclePosX,
    Float:g_VehiclePosY,
    Float:g_VehiclePosZ,
}
It's probably rare that would will actually need use my example.

In fact I have only ever had to do this once with our older map editor and vehicles and you can see I still had to store the text outside of the enum due to limitations.

pawn Code:
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];
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)