24.10.2009, 20:58
The error:
warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
The code:
What is the problem here guys?
warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
The code:
Код:
public OnPlayerPrivmsg(playerid, recieverid, text[]) { new string[128]; if(PMsEnabled[recieverid]) { format(string, sizeof(string), "[PM:] PM from %s(%d): %s", GetPlayerNameEx(playerid),playerid, text); SendClientMessage(recieverid,COLOR_MEDIUMBLUE,string); format(string, sizeof(string), "[OOCPM:] PM sent to %s(%d): %s", GetPlayerNameEx(recieverid),recieverid, text); SendClientMessage(playerid,COLOR_MEDIUMBLUE,string); format(string, sizeof(string), "[PM:] PM from %s(%d) to %s(%d): %s", GetPlayerNameEx(playerid),playerid, GetPlayerNameEx(recieverid),recieverid, text); PMLog(string); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pSeepm] == 1) { format(string, sizeof(string), "[PM:] PM from %s(%d) to %s(%d): %s", GetPlayerNameEx(playerid),playerid, GetPlayerNameEx(recieverid),recieverid, text); SendClientMessage(i, COLOR_DBLUE, string); } } } return 1; } else { SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[ERROR:] That user has disabled PM's."); } return 1; }