Problem with ZCMD
#1

When i try to compile file that includes ZCMD, i got
PHP код:
C:\Users\Andrew\Desktop\Trucking server\pawno\include\zcmd.inc(62) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Andrew\Desktop\Trucking server\pawno\include\zcmd.inc(64) : error 017undefined symbol "funcidx"
C:\Users\Andrew\Desktop\Trucking server\pawno\include\zcmd.inc(64) : warning 215expression has no effect
C
:\Users\Andrew\Desktop\Trucking server\pawno\include\zcmd.inc(64) : error 001expected token";"but found ")"
C:\Users\Andrew\Desktop\Trucking server\pawno\include\zcmd.inc(64) : error 029invalid expressionassumed zero
C
:\Users\Andrew\Desktop\Trucking server\pawno\include\zcmd.inc(64) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply
#2

Show us your command script please , also you forget to define new funcidx;
Reply
#3

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Show us your command script please , also you forget to define new funcidx;
@SilentSoul - that's not the problem, the problem is on the include
@Bustern Update your include.


kgui
Код:
This forum requires that you wait 240 seconds between posts. Please try again in 31 seconds.
Reply
#4

None of the above.

OnGameModeInit is forwared in a_samp.inc
funcidx is a native in core.inc which is included in a_samp.inc

So the solution is to include a_samp and you must include it before ZCMD:
pawn Код:
#include < a_samp >
#include < zcmd >
Reply
#5

pawn Код:
#include <a_samp>
#include <ZCMD>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)