Portal SAMP
[Ajuda] multi-dimensional arrays must be fully initialized - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] multi-dimensional arrays must be fully initialized (/showthread.php?tid=3496)



multi-dimensional arrays must be fully initialized - CastielCatt - 03/04/2023

Alguém pode me ajudar?

#define MAX_RAD_NAME (16)
#define MAX_RADIO (6)
#define TIME_UPDATE (1500)

enum vehplayer {
FloatTongueoos[3],
SeeVehicle,
} ;
new VPInfo [MAX_PLAYERS] [vehplayer] ;

new RadioVeh [MAX_VEHICLES] = { -1, ... },
MaxPlayers,
timerradio
;

new Radio [MAX_RADIO] [6] [72] =
{
{"Abertura CRP", "https://server1.mtabrasil.com.br/youtube/play?id=4vk87eN1La4"},
{"Country channel", "http://live.hunterfm.com/country"},
{"Hitz Channel", "http://live.hunterfm.com/live"},
{"Pop2kHits", "http://listen.shoutcast.com/radiohunter-thepop2khitschannel"},
{"Hits brasil", "https://live.hunter.fm/hitsbrasil_normal"},
{"ROCK", "https://live.hunter.fm/rock_normal"
}};


RE: multi-dimensional arrays must be fully initialized - Vel - 03/04/2023

Código:
Radio[MAX_RADIO][2][72]



RE: multi-dimensional arrays must be fully initialized - CastielCatt - 04/04/2023

@Vel Não não, não é isso! Eu já resolvi... Não precisa de uma definição... Já que são setadas em variaveis cronológicas... Então foi engano meu usar uma numéração no local do dois. Já que o 'max' seta...