Array length
#8

Another question regarding this: I want the server to create the dialog using the list array, but it doesn't work properly;

pawn Код:
new dialogmsg[1024] = "{FF0000}Turn off{FFFFFF}";
    for(new i=0; i<sizeof(radiolist); i++)
    {
        new tmp[1024];
        format(tmp, sizeof(tmp), dialogmsg, "%s\n%s", dialogmsg, radiolist[i][1]);
        dialogmsg = tmp;
    }
When I type the command, it opens a dialog only with "Turn off" and nothing else. The for doesn't add the radio list to the string. Please help!

EDIT: Found my mistake, thanks anyway!
Reply


Messages In This Thread
Array length - by arad55 - 21.08.2014, 11:58
Re: Array length - by MicroD - 21.08.2014, 11:59
Re: Array length - by arad55 - 21.08.2014, 12:01
Re: Array length - by MicroD - 21.08.2014, 12:04
Re: Array length - by arad55 - 21.08.2014, 17:23
Re: Array length - by [XST]O_x - 21.08.2014, 17:28
Re: Array length - by arad55 - 21.08.2014, 19:13
Re: Array length - by arad55 - 21.08.2014, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)