10.03.2014, 21:29
Well hello guys. Right now, I am trying to fix a turf system. And I have found a couple of codes in my script like this:
And I can see there is a "menu" in the code but I cant find any CMD that is opening up the menu. So my question is what should I do to find out, how to open this menu?
Thanks.
Austin
Код:
TurfWarsAdminMenu(playerid) { new string[128]; format(string,sizeof(string),"Edit Turfs...\nEdit Family Colors..."); ShowPlayerDialog(playerid,TWADMINMENU,DIALOG_STYLE_LIST,"Turf Wars - Admin Menu:",string,"Select","Exit"); } TurfWarsEditTurfsSelection(playerid) { new string[2048]; for(new i = 0; i < MAX_TURFS; i++) { if(TurfWars[i][twOwnerId] != -1) { if(TurfWars[i][twOwnerId] < 0 || TurfWars[i][twOwnerId] > MAX_FAMILY-1) { format(string,sizeof(string),"%s%s - \t(Invalid Family)\n",string,TurfWars[i][twName]); } else { format(string,sizeof(string),"%s%s - \t(%s)\n",string,TurfWars[i][twName],FamilyInfo[TurfWars[i][twOwnerId]][FamilyName]); } } else { format(string,sizeof(string),"%s%s - \t(%s)\n",string,TurfWars[i][twName],"Vacant"); } } ShowPlayerDialog(playerid,TWEDITTURFSSELECTION,DIALOG_STYLE_LIST,"Turf Wars - Edit Turfs Selection Menu:",string,"Select","Back"); }
Thanks.
Austin