what is wrong in this function - 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)
+--- Thread: what is wrong in this function (
/showthread.php?tid=617840)
what is wrong in this function -
Gotham - 27.09.2016
Hi guys,
I am getting an error on creating a anti-spam system
link:
https://sampforum.blast.hk/showthread.php?tid=301568 (in case you might need it)
Errors
Код:
C:\Users\gouth_000\Desktop\Server SAMP\filterscripts\GAdmin1.0.pwn(92) : error 055: start of function body without function header
C:\Users\gouth_000\Desktop\Server SAMP\filterscripts\GAdmin1.0.pwn(97) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Lines
PHP код:
forward AutoUnMute(pID);
public AutoUnMute(pID);
{
muted[pID] = 0;
SpamCount[pID]=0;
SendClientMessage(pID, COL1_RED, "You are unmuted now");
GameTextForPlayer(pID, "~g~ Unmuted!", 5000, 5);
return 1;
}
Re: what is wrong in this function -
JaKe Elite - 27.09.2016
PHP код:
public AutoUnMute(pID);
to
PHP код:
public AutoUnMute(pID)
Re: what is wrong in this function -
Yaa - 27.09.2016
public AutoUnMute(pID); ----> public AutoUnMute(pID)
Re: what is wrong in this function -
Gotham - 27.09.2016
Thanks both , +Rep