Problem with the Dialog -
GAMER_PS2 - 28.10.2011
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!");
}
}
}
Re: Problem with the Dialog -
Kostas' - 28.10.2011
Because you wrote at the caption "Ballas Shop". Why you don't write Weapons Shop instead of Gang's names
Re: Problem with the Dialog -
GAMER_PS2 - 28.10.2011
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
Re: Problem with the Dialog -
Kostas' - 28.10.2011
The problem which is, that the title at the top of the dialog says Ballas Shop, and you want says Gangs Name?
Re: Problem with the Dialog -
GAMER_PS2 - 28.10.2011
Yes just like this %(which is the gang name) Shop
Re: Problem with the Dialog -
Pinguinn - 28.10.2011
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
and
Change
to your own team check