AddMenu Convert to ShowPlayerDialog
#7

pawn Код:
#define MAX_RACING_MAPS 4 //You can define here yourself the amount of racing maps you own.
#define VOTEMAP_DIALOGID    1 //You should change it if you are using another dialogs with the same ID.

stock createVote()
{
    new dstr[512], bool:check = false;
    for (new i = 0; i < MAX_RACING_MAPS; i++)
    {
        if(!check)
        {
            format(dstr, sizeof(dstr), "%s", gVoteItems[i]);
            check = true;
        }
        else format(dstr, sizeof(dstr), "%s\r\n%s", dstr, gVoteItems[i]);
    }
    ShowPlayerDialog(playerid, VOTEMAP_DIALOGID, DIALOG_STYLE_LIST, "Racing Vote", dstr, "Vote", "Cancel");
}
Reply


Messages In This Thread
AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 03:16
Re: AddMenu Convert to ShowPlayerDialog - by =WoR=Varth - 07.07.2011, 03:18
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 03:27
Re: AddMenu Convert to ShowPlayerDialog - by =WoR=Varth - 07.07.2011, 03:30
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 03:49
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 04:08
Re: AddMenu Convert to ShowPlayerDialog - by BigETI - 07.07.2011, 05:10
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 07:40
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 08:13
Re: AddMenu Convert to ShowPlayerDialog - by Kyosaur - 07.07.2011, 08:27

Forum Jump:


Users browsing this thread: 1 Guest(s)