Salut, am incercat să fac un shop pe dialog, cum este şi-n gamemode-ul Burned, problema fiind că dacă tastez comanda /shop aceasta nu face nimic şi iţi este trimis mesajul că comanda X nu există.
Imagine (in-game):
Precizez şi că gamemode-ul nu dă erori la compilare.
Comanda:
CMD:shop(playerid,params[]) return ShowShop(playerid);
Functia:
function ShowShop(playerid) {
new diamond = PlayerInfo[playerid][pDiamonds],
string[180], szDialog[4000];
strcat(szDialog, "{FFE100}($) Preturi si informatii{FFFFFF}\n");
if(diamond >= 500) format(string, sizeof(string), "Premium Account - {1ECC14}500 Diamondss\n");
else format(string, sizeof(string), "Premium account - {FF0000}500 Diamonds\n");
strcat(szDialog, string);
new title[180];
format(title, 256, "Shop: (%d diamonds)", diamond);
ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST, title, szDialog, "Select", "Close");
return 1;
}