[HELP]Creating a Three-Dimensional Array
#3

I will need it to be just in an array, as it will be too large to use in OnGameModeInit.
Quote:
Originally Posted by kingmk
Посмотреть сообщение
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;
}
Don't work:
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"}
};
Reply


Messages In This Thread
[FIXED]Creating a Three-Dimensional Array - by JR_Junior - 01.03.2018, 22:22
Re: [HELP]Creating a Three-Dimensional Array - by kingmk - 01.03.2018, 22:29
Re: [HELP]Creating a Three-Dimensional Array - by JR_Junior - 01.03.2018, 22:41
Re: [HELP]Creating a Three-Dimensional Array - by PepsiCola23 - 01.03.2018, 22:49
Re: [HELP]Creating a Three-Dimensional Array - by JR_Junior - 02.03.2018, 00:20
Re: [HELP]Creating a Three-Dimensional Array - by AroseKhanNiazi - 02.03.2018, 00:53
Re: [HELP]Creating a Three-Dimensional Array - by JR_Junior - 02.03.2018, 01:46

Forum Jump:


Users browsing this thread: 1 Guest(s)