- 0
Problema dialog
-
Similar Content
-
- 2 answers
- 598 views
-
Problema turf
By Soryn.,
- 3 answers
- 395 views
-
- 0 replies
- 109 views
-
- 2 replies
- 327 views
-
- 1 reply
- 201 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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; }
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.