need help -
STONEGOLD - 16.03.2012
\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.
Re: need help -
ReneG - 17.03.2012
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.
Re: need help -
STONEGOLD - 17.03.2012
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);
}
Re: need help -
Rob_Maate - 17.03.2012
At the top of the script:
forward OnPlayerPrivateMessage(playerid, receiverid, text[]);
Then press CTRL + H
Search for: OnPlayerPrivmsg(
Replace With: OnPlayerPrivateMessage(