#define MAX_RADIO (5)
new Radio [ MAX_RADIO ] [ 5 ] [ 120 ] = {
{ "HOT 108", "http://www.hot108.com/hot108.pls" },
{ "Radio 24/7", "http://37.187.79.56:9744" },
{ "Kiss FM", "http://80.86.106.136:80" },
{ "Radio Hot", "http://mp3.radiohot.ro:8000" },
{ "Radio Taraf", "http://radiotaraf.com/live.m3u" }
};
C:\Documents and Settings\JonnY\Desktop\radio.pwn(24) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
enum rEnum{
rName[32],
rUrl[120]
};
new Radio[][rEnum] = {
{ "HOT 108", "http://www.hot108.com/hot108.pls" },
{ "Radio 24/7", "http://37.187.79.56:9744" },
{ "Kiss FM", "http://80.86.106.136:80" },
{ "Radio Hot", "http://mp3.radiohot.ro:8000" },
{ "Radio Taraf", "http://radiotaraf.com/live.m3u" }
};
main()
{
for(new i; i < sizeof(Radio); i++){
printf("Name > %s - Url > %s ", Radio[i][rName], Radio[i][rUrl]);
}
}
|
Solved, i put new Radio [ MAX_RADIO ] [ 2 ] [ 120 ] and works, thanks anyway.
|
new Radio [ ] [ ] [ ] = {
{ "HOT 108", "http://www.hot108.com/hot108.pls" },
{ "Radio 24/7", "http://37.187.79.56:9744" },
{ "Kiss FM", "http://80.86.106.136:80" },
{ "Radio Hot", "http://mp3.radiohot.ro:8000" },
{ "Radio Taraf", "http://radiotaraf.com/live.m3u" }
};