07.07.2011, 03:16
Hi!
How to convert Addmenu to dialog?
Old(addmenu)
How to convert Addmenu to dialog?
Old(addmenu)
pawn Код:
createVote()
{
for (new i;i<4;i++) gVoteItems[i] = "RESET";
DestroyMenu(voteMenu);
voteMenu = CreateMenu("Vote",1, 50.0, 200.0, 120.0, 250.0);
print("Creating Votemenu");
for (new i=0;i<4;i++)
{
randomRaceName(i,gRaces);
AddMenuItem(voteMenu,0,gVoteItems[i]); // HOW TO USE THIS IS DIALOG ??
printf("VoteOption%d: %s",i,gVoteItems[i]);
}
for (new i=0;i<4;i++)gVotes[i]=0;
}