Hi there....again! I`m trying to make a dialog menu, and I have encountered a problem. Everything works fine, until I double-click the option I set to send a message. When I dbl click it, it does nothing. Could you...give some advice please? Here`s the code:
Код:
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Account", "Stats\nSettings", "Ok", "Back");
if(dialogid == 3)
{
if(response = 0)
{
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, 10, 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;
You are having pronlem sending a message (like a private message)? IF YES then you haven't shown us the code for the message dialog