Undefined symbol
#1

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

Does the variable get created before used?

The "new test;" must be placed before you include the other file.
Reply
#3

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

In one gamemode it works, but in another gamemode doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)