help with warning please? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with warning please? (
/showthread.php?tid=81501)
help with warning please? -
Mr_Finnigan - 11.06.2009
warning 235: public function lacks forward declaration (symbol "OnPlayerTeamPrivmsg")
Код:
public OnPlayerTeamPrivmsg(playerid, msg[])
{
new string[256], name[24];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string),"*** [TPM] %s(%d): %s", name, playerid, msg);
for (new k = 0; k < SLOTS; k ++) {
if (IsPlayerConnected(k)) {
if (IsPlayerAdmin( k )) {
if (ShowTPM[ k ] != 0) {
if (k != playerid && gTeam[ playerid ] != gTeam[ k ]) {
SendClientMessage( k, COLOR_TPM, string );
}
}
}
}
}
return 1;
}
The top line being the line with the warning ,any ideas?
Re: help with warning please? -
JoeDaDude - 11.06.2009
pawn Код:
forward OnPlayerTeamPrivmsg(playerid, msg[]);
Put that at top of you script