String loop to join strings
#1

Hello, I would like to know how to join strings?

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;
}
I want to loop every line in a format and then show the list as dialog.
Reply


Messages In This Thread
String loop to join strings - by ProjectMan - 18.08.2013, 08:40
Re: String loop to join strings - by Roko_foko - 18.08.2013, 08:51
Re: String loop to join strings - by ProjectMan - 18.08.2013, 08:57
Re: String loop to join strings - by Edix - 18.08.2013, 10:02

Forum Jump:


Users browsing this thread: 3 Guest(s)