Privet Message bug
#1

The error:
warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

The code:

Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	new string[128];
	if(PMsEnabled[recieverid])
	{
		format(string, sizeof(string), "[PM:] PM from %s(%d): %s", GetPlayerNameEx(playerid),playerid, text);
		SendClientMessage(recieverid,COLOR_MEDIUMBLUE,string);
		format(string, sizeof(string), "[OOCPM:] PM sent to %s(%d): %s", GetPlayerNameEx(recieverid),recieverid, text);
		SendClientMessage(playerid,COLOR_MEDIUMBLUE,string);
		format(string, sizeof(string), "[PM:] PM from %s(%d) to %s(%d): %s", GetPlayerNameEx(playerid),playerid, GetPlayerNameEx(recieverid),recieverid, text);
		PMLog(string);
		for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				  if(PlayerInfo[i][pSeepm] == 1)
				  {
              format(string, sizeof(string), "[PM:] PM from %s(%d) to %s(%d): %s", GetPlayerNameEx(playerid),playerid, GetPlayerNameEx(recieverid),recieverid, text);
              SendClientMessage(i, COLOR_DBLUE, string);
					}
				}
			}

		return 1;
	}
	else
	{
	  SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[ERROR:] That user has disabled PM's.");
	}
	return 1;
}
What is the problem here guys?
Reply


Messages In This Thread
Privet Message bug - by tomnidi - 24.10.2009, 20:58
Re: Privet Message bug - by (.Aztec); - 24.10.2009, 21:05
Re: Privet Message bug - by Dsg - 24.10.2009, 21:09
Re: Privet Message bug - by Tyler_Idy - 24.10.2009, 23:36
Re: Privet Message bug - by tomnidi - 25.10.2009, 11:05
Re: Privet Message bug - by Joe Staff - 25.10.2009, 11:12

Forum Jump:


Users browsing this thread: 3 Guest(s)