21.08.2014, 19:46
Another question regarding this: I want the server to create the dialog using the list array, but it doesn't work properly;
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!
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;
}
EDIT: Found my mistake, thanks anyway!