Posts: 312
Threads: 83
Joined: Feb 2012
Reputation:
0
\samp03dsvr_R2_win321\filterscripts\ladmin2.pwn(87 4) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 4264 bytes
Code size: 301076 bytes
Data size: 305868 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 627592 bytes
1 Warning.
Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
OnPlayerPrivMsg is an old ass function. Go into the ladmin2 filterscript and remove anything that has to do with OnPlayerPrivMsg. That is an old function that was removed with newer versions of samp.
Posts: 312
Threads: 83
Joined: Feb 2012
Reputation:
0
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
if(ServerInfo[ReadPMs] == 1 && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
{
new string[64],playername[MAX_PLAYER_NAME],recievername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(recieverid, recievername, sizeof(recievername));
format(string, sizeof(string), "***PM: %s To %s: %s", playername,recievername, text);
for (new a = 0; a < MAX_PLAYERS; a++)
if (IsPlayerConnected(a) && (PlayerInfo[a][Level] >= 1) && a != playerid)
SendClientMessage(a, COLOR_GREY, string);
}
Posts: 434
Threads: 19
Joined: Aug 2011
Reputation:
0
At the top of the script:
forward OnPlayerPrivateMessage(playerid, receiverid, text[]);
Then press CTRL + H
Search for: OnPlayerPrivmsg(
Replace With: OnPlayerPrivateMessage(