Compiler Error
#1

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
Reply
#2

show us your script lines (1 to 10 )
Reply
#3

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.
Reply
#4

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

Reply
#5

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>

Reply
#6

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.
Reply
#7

problem solved thnx guyz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)