SA-MP Forums Archive
Help with mute [Solved] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with mute [Solved] (/showthread.php?tid=144847)



Help with mute [Solved] - ViruZZzZ_ChiLLL - 29.04.2010

Question:
Okay, so I have this code, and why does it mute me whenever I type any id number??
Код:
case 0:
{
ShowPlayerDialog(playerid, 8,DIALOG_STYLE_INPUT,"Mute","Type the player's id below:","Next","Cancel"); // DIALOG ID 8
}

//--------------------------------------------------------------------

if(dialogid == 8)
{
if (response)
{
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT,"Mute","Enter reason for the mute","Mute","Cancel");
Muted[Player[playerid]] = 1;
return 1;
}
Problem:
To make it mute the player id that I will type in the Dialog id 8
________
UNIVERSAL LIFE INSURANCE DICUSSION


Re: Help with mute - Correlli - 29.04.2010

pawn Код:
Muted[strval(inputtext)] = 1;



Re: Help with mute - ViruZZzZ_ChiLLL - 29.04.2010

Quote:
Originally Posted by Don Correlli
pawn Код:
Muted[strval(inputtext)] = 1;
Tyvm, it works now
________
Vermont marijuana dispensaries