01.03.2018, 22:41
I will need it to be just in an array, as it will be too large to use in OnGameModeInit.
Don't work:
Quote:
You can do something like this, instead using array.
Код:
#DEFINE MAX_MAPS 1 enum E_MAP { Float: pMapX, Float: pMapY, Float: pMapZ, pMapName[35] }; new MapInfo[MAX_MAPS][E_MAP]; hook OnGameModeInit() { MapInfo[0][pMapX] = 1942.3726; MapInfo[0][pMapY] = -1772.8423; MapInfo[0][pMapZ] = 13.6406; sizeof(MapInfo[0][pMapName], 35, "Terrestre"); return 1; } |
Quote:
Or try this. Код:
new Mapa_PostosLS[2][4] = { {Float:1942.3726, Float:-1772.8423, Float:13.6406, "Terrestre"}, {Float:1942.3726, Float:-1772.8423, Float:13.6406, "Terrestre2"} }; |