12.10.2014, 08:35
Instead of doing that I would just do this.
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 gInfo
{
Float:g_VehiclePosX,
Float:g_VehiclePosY,
Float:g_VehiclePosZ,
}
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];