Help needed.
#7

I have fixed that problem. I'm on this one now.
C:\Users\Dillon\Desktop\Gang Wars\filterscripts\hadmin.pwn(924) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivateMessage")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.




public OnPlayerPrivateMessage(playerid, recieverid, text[])
{
if(GetConfig("LockPM")==1 || LockPrivm==1) return SendClientMessage(playerid,RED,"The PM is locked you can't PM to other players"),0;
if(Info[playerid][Muted]==1 && GetConfig("MutePM")==1) return SendClientMessage(playerid,RED,"you are muted you can't say anything"),0;
if(Ignore[recieverid][playerid]==1) return SendClientMessage(playerid,RED,"This player has ignored you, You CAN'T talk to him"),0;
new string[128];
format(string,sizeof(string),"PM from %s(%d): %s",Name(playerid),playerid,text);
SendClientMessage(recieverid,PMCOLOR,string);
format(string,sizeof(string),"PM send to %s: %s",Name(recieverid),text);
SendClientMessage(playerid,PMCOLOR,string);
if(GetConfig("ReadPM")==1)
{
format(string,sizeof(string),"PM: %s To: %s: %s",Name(playerid),Name(recieverid),text);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerHAdmin(i) && i != playerid && i != recieverid)
{
SendClientMessage(i,GREEN,string);
}
}
}
return 1;
}
Reply


Messages In This Thread
Help needed. - by xRasto - 15.06.2011, 23:47
Re: Help needed. - by randomkid88 - 15.06.2011, 23:56
Re: Help needed. - by xRasto - 16.06.2011, 00:04
Re: Help needed. - by HayZatic - 16.06.2011, 00:17
Re: Help needed. - by xRasto - 16.06.2011, 00:35
Re: Help needed. - by xRasto - 16.06.2011, 00:42
Re: Help needed. - by xRasto - 16.06.2011, 01:37
Re: Help needed. - by HayZatic - 16.06.2011, 01:59
Re: Help needed. - by randomkid88 - 16.06.2011, 04:54
Re: Help needed. - by xRasto - 16.06.2011, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)