la admin error help me +1 rep
#1

this is error

Код:
C:\Documents and Settings\BALOCH\My Documents\Downloads\samp\filterscripts\ladmin2.pwn(874) : 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.
and this is line

Код:
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);
	}
so give me fixed code
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerPrivmsg
Warning: This callback was removed in SA-MP 0.3. See below how to create a /pm command.

Quote:
Originally Posted by sscarface
Посмотреть сообщение
so give me fixed code
We're not your slaves.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)