SA-MP Forums Archive
Error compiling filterscript. - 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: Error compiling filterscript. (/showthread.php?tid=652131)



Error compiling filterscript. - LewisRGazzard - 03.04.2018

Propably gonna get alot of hate, because I'm propably doing the most simple thing in the world wrong, but I'm trying to compile a filterscript which contains mapping, and I'm getting these errors.

I've been scripting for a few days, so I'm just starting to learn, please bear that in mind, and I know the code is propably messy as hell, as I said, I'm learning. (Also, sorry for my bad English. I'm actually Spanish.)

Код:
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(12) : warning 225: unreachable code
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(12) : warning 217: loose indentation
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(12) : warning 203: symbol is never used: "tmpobjid"
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(12) : warning 203: symbol is never used: "Test"
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(12 -- 14) : warning 209: function "OnFilterScriptInit" should return a value
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(73) : warning 217: loose indentation
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(74) : warning 217: loose indentation
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(80) : warning 217: loose indentation
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(550) : warning 217: loose indentation
C:\Users\Lewis Gazzard\Music\Revenant Gaming Roleplay\filterscripts\maps.pwn(550) : error 021: symbol already defined: "tmpobjid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Here is the file - maps.pwn
And a pastebin link - https://pastebin.com/zk2259MT

Thanks in advanced.



Re: Error compiling filterscript. - FailerZ - 03.04.2018

There https://pastebin.com/tSXYwXzj

You were mistaking and placed the object codes under OnPlayerConnect, also you have tried to create the variable with the same name again.


Re: Error compiling filterscript. - LewisRGazzard - 03.04.2018

Quote:
Originally Posted by FailerZ
Посмотреть сообщение
There https://pastebin.com/tSXYwXzj

You were mistaking and placed the object codes under OnPlayerConnect, also you have tried to create the variable with the same name again.
Thanks man. Much appreciated.