24.04.2010, 14:33
Here`s the code:
And here`s the explanation:
When I do /menu and the go to Stats..it does nothing from what I set it to do. The dialog just dissappears and nothing more...
Код:
else if(dialogid == 2) { if(listitem == 0) { ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Account", "Stats\nSettings", "Ok", "Back"); if(dialogid == 3) { if(response) { if(listitem == 0) { new string[128], pname[MAX_PLAYER_NAME], file[128], pass[128],kills; GetPlayerName(playerid, pname, sizeof(pname)); format(file, sizeof(file), "\\Users\\%s.ini", pname); dini_Int(file, "kills", kills); dini_Get(file, "password", pass); format(string, sizeof(string), ".:: Name: %s || Password: %s || Money: %i || Kills: %i ::.", pname, pass, GetPlayerMoney(playerid), kills); SendClientMessage(playerid, COLOUR_BLUE, string); return 1; } if(listitem == 1) { ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Settings", "Auto-repair\nAuto-NOS\nChange password", "Ok", "Back"); return 1; } else ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Main Menu", "Account\nVehicles\nTeleports\n", "Ok", "Cancel"); return 1; } } return 1; } return 1; } return 1; }
When I do /menu and the go to Stats..it does nothing from what I set it to do. The dialog just dissappears and nothing more...