Error compiling filterscript.
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)