SA-MP Forums Archive
I get 1 error when compiling - 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: I get 1 error when compiling (/showthread.php?tid=458255)



I get 1 error when compiling - FaceTutorialz - 15.08.2013

I am trying to learn how to script and I looked up a teams tutorial on how to make teams, and everything works but AddPlayerClass, this is the error I get

Код:
C:\Users\dakota pittman\Desktop\ZC-RP\filterscripts\ZRPTeams.pwn(39) : error 021: symbol already defined: "AddPlayerClass"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Any help, I know this maybe a VERY simple problem to solve.


Re: I get 1 error when compiling - HyperZ - 15.08.2013

Make sure, you added player classes under OnGameModeInit.

Like this:
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(....);
    return 1;
}



Re: I get 1 error when compiling - FaceTutorialz - 15.08.2013

Yep, figured it out now, thanks