SA-MP Forums Archive
Compiler 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)
+--- Thread: Compiler Error (/showthread.php?tid=563189)



Compiler Error - PuN1Sh3r - 14.02.2015

i got this error guyz who can help me
Quote:

C:\Users\xxx\xxxx\xxxxxx\xxxxx\gamemodes\xxxx.pwn( 5) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\xxxx\xxxxx\xxxxxx\xxxxx\xxxxxxx\xxxx.pwn( 5) : error 010: invalid function or declaration
C:\Users\xxxxx\xxxxxx\xxxxxx\pawno\include\a_samp. inc(30) : warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

MAX_PLAYERS is already added on my server.cfg


Re: Compiler Error - Golf - 14.02.2015

show us your script lines (1 to 10 )


Re: Compiler Error - Puppy - 14.02.2015

MAX_PLAYERS isn't in your server.cfg, that doesn't make sense. maxplayers how-ever is.

pawn Код:
C:\Users\xxxxx\xxxxxx\xxxxxx\pawno\include\a_samp. inc(30) : warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
The issue is that your probably incorrectly redefining MAX_PLAYERS.

Showing us your code should maybe help us fix the issue.


Re: Compiler Error - PuN1Sh3r - 14.02.2015

this what i have
Quote:

Line1
Line2
#include <a_http> Line3
Line4
#undef MAX_PLAYERS Line5
#define MAX_PLAYERS 100 Line6
Line7
#include <Double-O-Files> Line8
#include <Double-O-Gates> Line9
#include <yom_buttons> Line10




Re: Compiler Error - PuN1Sh3r - 14.02.2015

this is my first 10 lines
Quote:

#include <a_http>

#undef MAX_PLAYERS
#define MAX_PLAYERS 100

#include <Double-O-Files>
#include <Double-O-Gates>
#include <yom_buttons>




Re: Compiler Error - Puppy - 14.02.2015

Do you include <a_samp> after redefining MAX_PLAYERS? It should be the other way around.

EDIT: You need to include <a_samp> on line 1, before doing anything else. Doing that, should resolve the MAX_PLAYERS issue.


Re: Compiler Error - PuN1Sh3r - 14.02.2015

problem solved thnx guyz