[SOLVED] symbol already defined: "CreateDynamicObject" - 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: [SOLVED] symbol already defined: "CreateDynamicObject" (
/showthread.php?tid=630658)
[SOLVED] symbol already defined: "CreateDynamicObject" -
Sibuscus - 17.03.2017
Код:
test.pwn(524) : error 021: symbol already defined: "CreateDynamicObject"
This are all the includes I have
PHP код:
#include <a_samp>
#include <nex-ac>
#include <foreach>
#include <streamer>
#include <YSI\y_ini>
#include <zcmd>
#include <sscanf2>
//And this is the only CreateDynamicObject I have
/*524*/CreateDynamicObject(3091, -2288.63623, 2642.10376, 55.00216, 0.00000, 0.00000, -86.16001);
If I remove #include <streamer> I get this:
Код:
test.pwn(524) : error 010: invalid function or declaration
test.pwn(524) : error 010: invalid function or declaration
test.pwn(1769) : warning 203: symbol is never used: "CreateDynamicObject"
1769 is 1 line after the end of my whole .pwn file
Re: [Help] CreateDynamicObject symbolalreadydefined -
Variable™ - 17.03.2017
Where do you put this line? Put it under
OnGameModeInit() if its a gamemode or under
OnFilterScriptInit() if its a filterscript and recompile. I am quite sure you put it as a function so it gets this error as the function is already defined by Streamer.
Re: [Help] CreateDynamicObject symbolalreadydefined -
Sibuscus - 17.03.2017
Quote:
Originally Posted by Variable™
Where do you put this line? Put it under OnGameModeInit() if its a gamemode or under OnFilterScriptInit() if its a filterscript and recompile. I am quite sure you put it as a function so it gets this error as the function is already defined by Streamer.
|
Well, that worked. Alriiite, +rep for u, dear sir. I started undefining and defining it again and doing some shit, but it was this simple....Story of my life. Btw, your signature is amazing, still laughing after 5 min
Re: [SOLVED] symbol already defined: "CreateDynamicObject" -
Variable™ - 17.03.2017
Glad I helped, have fun!