SA-MP Forums Archive
One error :/ - 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: One error :/ (/showthread.php?tid=136669)



One error :/ - JPs_ - 26.03.2010

Hi when I try to compiled this it says;

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/banme", cmdtext, true) == 0)
	{
		SendClientMessage(playerid, 0xC40000FF, "As you wish sir");
		Ban(playerid);
		return 1;
	}
	return 0;
}
it says,
Код:
C:\DOCUME~1\jServer0.3\GAMEMO~1\eX.pwn(1054) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
How do I fix this error ?




Re: One error :/ - JPs_ - 26.03.2010

Ok thanks,

Thanks for helping