18.08.2013, 08:40
Hello, I would like to know how to join strings?
Something like this:
I want to loop every line in a format and then show the list as dialog.
Something like this:
pawn Код:
CMD:shop(playerid,params[])
{
new LongString[512];
for(new i; i < sizeof(zones); i++)
{
printf("%s",zones[i][0]); // [0] is the name
format(LongString,sizeof(LongString),"%s\n",zones[i][0]);
}
ShowPlayerDialog(playerid, telemenu, DIALOG_STYLE_LIST, "Teleport menu", LongString, "Spawn", "Cancel");
return 1;
}