Undefined symbol - 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: Undefined symbol (
/showthread.php?tid=602685)
Undefined symbol -
MinDex - 11.03.2016
Hello.
I have main.pwn and system.pwn files. I create new in main.pwn ( new test; ), and in system.pwn use it. When i compiling main.pwn i get errors " gamemodes/files/system.pwn: Undefined symbol "test" " or something like this.
In other gamemode, it's okay.
Re: Undefined symbol -
NaS - 11.03.2016
Does the variable get created before used?
The "new test;" must be placed before you include the other file.
Re: Undefined symbol -
CalvinC - 11.03.2016
Variables don't work between scripts, you need to use pVars for that.
https://sampwiki.blast.hk/wiki/SetPVarFloat
https://sampwiki.blast.hk/wiki/SetPVarString
https://sampwiki.blast.hk/wiki/SetPVarInt
Re: Undefined symbol -
MinDex - 11.03.2016
In one gamemode it works, but in another gamemode doesn't work.