06.04.2014, 13:02
Olб gente, eu estava codando meu gm de zombie, e quando eu coloquei as Dialogues Box, no jogo quando fui testб-las dava sempre o erro "Unknown Command". Jб tentei arrumar varias vezes as Dialogues Box mas sempre dava o mesmo erro quando eu ia testб-las.Se alguйm poder me ajudar eu agradeзo.
Код:
if (strcmp("/comandos", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "~b~Comandos", "Nenhum no momento", "Fechar", "");
return 1;
Код:
if (strcmp("/armas", cmdtext, true, 10) == 0)
ShowPlayerDialog(playerid, Armas, DIALOG_STYLE_LIST, "Lista de Armas", "Eagle\nMP5\nM4\nKnife\nShotgun\n", "Selecionar", "Sair");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Armas)
{
if(response)
{
if(listitem == 0)
{
GetPlayerMoney(playerid >= 250);
GivePlayerWeapon(playerid, 24, 50);
SendClientMessage(playerid, COR_VERDE, "[Info]Vocк adquiriu uma Eagle por 250 pratas.");
ApplyAnimation(playerid, "DEALER", "shop_pay", 4.0, 0, 0, 0, 0, 0);
}
else if(listitem == 1)
{
GetPlayerMoney(playerid >= 600);
GivePlayerWeapon(playerid, 29, 120);
GivePlayerMoney(playerid, -400);
SendClientMessage(playerid, COR_VERDE, "[Info]Vocк adquiriu uma MP5 por 600 pratas.");
ApplyAnimation(playerid, "DEALER", "shop_pay", 4.0, 0, 0, 0, 0, 0);
}
else if(listitem == 2)
{
GetPlayerMoney(playerid >= 1100);
GivePlayerWeapon(playerid, 31, 170);
SendClientMessage(playerid, COR_VERDE, "[INFO]Vocк adquiriu uma M4 por 1.100 pratas.");
ApplyAnimation(playerid, "DEALER", "shop_pay", 4.0, 0, 0, 0, 0, 0);
}
else if(listitem == 3)
{
GetPlayerMoney(playerid >= 50);
GivePlayerWeapon(playerid, 4, 1);
SendClientMessage(playerid, COR_VERDE, "[INFO]Vocк adquiriu uma Knife por 50 pratas.");
ApplyAnimation(playerid, "DEALER", "shop_pay", 4.0, 0, 0, 0, 0, 0);
}
else if(listitem == 4)
{
GetPlayerMoney(playerid >= 550);
GivePlayerWeapon(playerid, 25, 35);
SendClientMessage(playerid, COR_VERDE, "[INFO]Vocк adquiriu uma Shotgun por 550 pratas.");
ApplyAnimation(playerid, "DEALER", "shop_pay", 4.0, 0, 0, 0, 0, 0);
}
}
}
return 1;
}


