29.04.2010, 07:00
(
Последний раз редактировалось ViruZZzZ_ChiLLL; 25.02.2011 в 00:23.
)
Код:
if(dialogid == 8)
{
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT,"Mute","Enter reason for the mute","Mute","Cancel");
}
if(dialogid == 9)
{
if(!response)
if(IsPlayerConnected(strval(inputtext)))
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if (Muted[Player[playerid]] == 1) return SendClientMessage(playerid, red,"That player is already muted!");
format(string, sizeof(string), "%s has been muted by an Admin, Reason: %s", name);
SendClientMessageToAll(red,string);
SendClientMessage(playerid, lightblue,"The player has been succesfully muted.");
Muted[Player[playerid]] = 1;
}
else
{
SendClientMessage(playerid, red, "ERROR:Player is not connected");
}
return 1;
}
Okay, so I have this. There's no error in the compilation, but, when in-game it gets buggy.
Problem 1: Whenever I press cancel it still goes on.
Problem 2: It doesn't say the reason that I typed in the ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT,"Mute","Enter reason for the mute","Mute","Cancel");
________
Honda VFR800 history

