String loop to join strings
#3

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
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%s",LongString,zones[i][0]);//>>> this line is changed <<<
        }

    ShowPlayerDialog(playerid, telemenu, DIALOG_STYLE_LIST, "Teleport menu", LongString, "Spawn", "Cancel");
    return 1;
}
Thanks. If you are wondering why I made that command, it's because I don't want to type the stuff. Thanks again.
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: 2 Guest(s)