23.10.2009, 13:32
hey guys
why i got this warning:
On this lines:
thanks all
why i got this warning:
Код:
C:\Documents and Settings\Administrator\щемзп дтбегд\CES\gamemodes\CES.pwn(649) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Код:
public OnPlayerPrivmsg(playerid, recieverid, text[]) { new string[128],p1[MAX_PLAYER_NAME],p2[MAX_PLAYER_NAME]; GetPlayerName(playerid,p1,sizeof(p1)); GetPlayerName(recieverid,p2,sizeof(p2)); format(string,sizeof(string),"PM Sent to [ID:%d | %s]: %s",recieverid,p2,text); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string,sizeof(string),"PM Received from [ID:%d | %s]: %s",playerid,p1,text); SendClientMessage(recieverid,COLOR_LIGHTBLUE,string); return 0; }
