Problem with the Dialog
#1

i'm making Gangwar GAMEMODE.
The Admin System i was working on is
for my Gangwar Gamemode.

Now I need help with my Dialog the dialog
is for all teams section buying menu but
i need help every menu it show the tittle up like this

"Ballas Shop" instead of the team name.

Please help me up

CODE:

pawn Код:
if(dialogid == PISTOLS)
    {
        if(!response)
        {
            ShowPlayerDialog(playerid,BALLASSHOP,DIALOG_STYLE_LIST,"Ballas Shop","Pistols\nExplotion\nShotgun\nRifles\nOther Weaps","Buy", "Exit");
            return 1;
        }
        switch(listitem)
        {
            case 0:
            {
                if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money");
                GivePlayerMoney(playerid, -5000);
                GivePlayerWeapon(playerid, 22,5000);
                SendClientMessage(playerid, COLOR_GREEN, "9mm Bought!");
            }
            case 1:
            {
                if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money");
                GivePlayerMoney(playerid, -5000);
                GivePlayerWeapon(playerid, 24,5000);
                SendClientMessage(playerid, COLOR_GREEN, "Desert Eagle Bought!");
            }
            case 2:
            {
                if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money");
                GivePlayerMoney(playerid, -5000);
                GivePlayerWeapon(playerid, 23,5000);
                SendClientMessage(playerid, COLOR_GREEN, "Silenced 9mm Bought!");
            }
        }
    }
Reply
#2

Because you wrote at the caption "Ballas Shop". Why you don't write Weapons Shop instead of Gang's names
Reply
#3

LOL this would be happen when you turn the BALLASHOP to Weaponshop when you back the main menu of shop it should be like "weapon shop" lol
Reply
#4

The problem which is, that the title at the top of the dialog says Ballas Shop, and you want says Gangs Name?
Reply
#5

Yes just like this %(which is the gang name) Shop
Reply
#6

pawn Код:
new gangShop[30], gangDialog[MAX_PLAYERS];
switch(GetPlayerTeam(playerid))
{
    case BALLAS:
    {
        gangDialog[playerid] = BALLAS+1000;
    }
   
    case GROVE:
    {
        gangDialog[playerid] = GROVE+1000;
    }
}
format(gangShop, sizeof(gangShop), "%s Shop", GetPlayerTeam(playerid));
ShowPlayerDialog(playerid, gangDialog[playerid] ,DIALOG_STYLE_LIST, gangShop,"Pistols\nExplotion\nShotgun\nRifles\nOther Weaps","Buy", "Exit");
Make sure you have
pawn Код:
#define GROVE {number}
and
pawn Код:
#define BALLAS {number}
Change
pawn Код:
GetPlayerTeam(playerid)
to your own team check
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)