Some Errors I Didnt understand
#4

This is line 177: if([playerid][Muted] == 1)

This is the callback it is in. I didnt code it, i am just hard codeing it in. And editing a few commands here and there:

Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{


 	if([playerid][Muted] == 1)
	{
		new string[128];
 		[playerid][MuteWarnings]++;
		if([playerid][MuteWarnings] < ServerInfo[MaxMuteWarnings]) {
			format(string, sizeof(string),"WARNING: You are muted, if you continue to speak you will be kicked (Warning: %d/%d)", [playerid][MuteWarnings], ServerInfo[MaxMuteWarnings] );
			SendClientMessage(playerid,red,string);
		} else {
			SendClientMessage(playerid,red,"You have been warned! Now you have been kicked");
			GetPlayerName(playerid, string, sizeof(string));
			format(string, sizeof(string),"%s [ID %d] Kicked for exceeding mute warnings", string, playerid);
			SendClientMessageToAll(grey,string);
			SaveToFile("KickLog",string); Kick(playerid);
		} return 0;
	}
	return 1;
}


Thanks For The Help,


Rick
Reply


Messages In This Thread
Some Errors I Didnt understand - by Rick_Jones - 19.08.2009, 04:01
Re: Some Errors I Didnt understand - by sandisk125 - 19.08.2009, 04:04
Re: Some Errors I Didnt understand - by Calgon - 19.08.2009, 04:06
Re: Some Errors I Didnt understand - by Rick_Jones - 19.08.2009, 05:28
Re: Some Errors I Didnt understand - by Calgon - 19.08.2009, 05:46
Re: Some Errors I Didnt understand - by Rick_Jones - 19.08.2009, 05:55

Forum Jump:


Users browsing this thread: 1 Guest(s)