- 0
Problema dialog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Marcel2
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):
http://prntscr.com/ogxuge
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; }
Edited by Moise053 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now