[HELP]Creating a Three-Dimensional Array
#1

Hello, I'm trying to create the following array, but it's giving error: warning 213: tag mismatch
PHP код:
new Mapa_PostosLS[][][] =
{
    {
Float:1942.3726,Float:-1772.8423,Float:13.6406,"Terrestre"}// posto 1 ls
}; 
To be read in:
PHP код:
IsPlayerInRangeOfPoint(playerid10.0Mapa_PostosLS[0][0], Mapa_PostosLS[0][1], Mapa_PostosLS[0][2])
format(DialogStringsizeof(DialogString), "Categoria: %s",Mapa_PostosLV[0][3]); 
Based in: https://sampforum.blast.hk/showthread.php?tid=318212


EDIT

Fixed

PHP код:
enum Pos_Postos {Float:PX,Float:PY,Float:PZ,PS[20]}
new 
Mapa_PostosLS[][Pos_Postos] =
{
    {
1942.3726,-1772.8423,13.6406,"Terrestre"}// posto 1 ls
}; 
To be read in:
PHP код:
IsPlayerInRangeOfPoint(playerid10.0Mapa_PostosLS[0][PX], Mapa_PostosLS[0][PY], Mapa_PostosLS[0][PZ])
format(DialogStringsizeof(DialogString), "Categoria: %s",Mapa_PostosLV[0][PS]); 

WORKING FINE
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)