SA-MP Forums Archive
Problem with ZCMD - 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: Problem with ZCMD (/showthread.php?tid=478828)



Problem with ZCMD - bustern - 01.12.2013

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




Re: Problem with ZCMD - SilentSoul - 01.12.2013

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


Re: Problem with ZCMD - Patrick - 01.12.2013

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.



Re: Problem with ZCMD - Konstantinos - 01.12.2013

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 >



Re: Problem with ZCMD - Lloyde - 26.02.2014

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