need help
#1

\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.
Reply
#2

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.
Reply
#3

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);
}
Reply
#4

At the top of the script:

forward OnPlayerPrivateMessage(playerid, receiverid, text[]);

Then press CTRL + H

Search for: OnPlayerPrivmsg(

Replace With: OnPlayerPrivateMessage(
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)