SA-MP Forums Archive
Filterscript Error!! - 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: Filterscript Error!! (/showthread.php?tid=630159)



Filterscript Error!! - ManIsHere - 10.03.2017

Hi. i tried to compile this script
Код:
 https://sampforum.blast.hk/showthread.php?tid=608851
by rootcause,
i get many errors. i didnot change anything, but still having errors. please help me what is i wrong doing?


ERRORS:::
Код:
C:\SAMP\Server\filterscripts\lumberjack.pwn(137) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(155) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(198) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(231) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(293) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(300) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(363) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(504) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(530) : error 025: function heading differs from prototype
C:\SAMP\Server\filterscripts\lumberjack.pwn(530) : error 017: undefined symbol "objectid"
C:\SAMP\Server\filterscripts\lumberjack.pwn(532) : error 010: invalid function or declaration
C:\SAMP\Server\filterscripts\lumberjack.pwn(534) : error 010: invalid function or declaration
C:\SAMP\Server\filterscripts\lumberjack.pwn(537) : error 010: invalid function or declaration
C:\SAMP\Server\filterscripts\lumberjack.pwn(544) : error 021: symbol already defined: "SetDynamicObjectPos"
C:\SAMP\Server\filterscripts\lumberjack.pwn(547) : error 021: symbol already defined: "Streamer_SetFloatData"
C:\SAMP\Server\filterscripts\lumberjack.pwn(551) : error 025: function heading differs from prototype
C:\SAMP\Server\filterscripts\lumberjack.pwn(551) : error 021: symbol already defined: "stmt_bind_value"
C:\SAMP\Server\filterscripts\lumberjack.pwn(552) : error 021: symbol already defined: "stmt_bind_value"
C:\SAMP\Server\filterscripts\lumberjack.pwn(553) : error 021: symbol already defined: "stmt_bind_value"
C:\SAMP\Server\filterscripts\lumberjack.pwn(554) : error 021: symbol already defined: "stmt_bind_value"
C:\SAMP\Server\filterscripts\lumberjack.pwn(555) : error 021: symbol already defined: "stmt_bind_value"
C:\SAMP\Server\filterscripts\lumberjack.pwn(556) : error 021: symbol already defined: "stmt_bind_value"
C:\SAMP\Server\filterscripts\lumberjack.pwn(557) : error 021: symbol already defined: "stmt_bind_value"
C:\SAMP\Server\filterscripts\lumberjack.pwn(558) : error 021: symbol already defined: "stmt_execute"
C:\SAMP\Server\filterscripts\lumberjack.pwn(560) : error 010: invalid function or declaration
C:\SAMP\Server\filterscripts\lumberjack.pwn(563) : error 010: invalid function or declaration
C:\SAMP\Server\filterscripts\lumberjack.pwn(565) : error 021: symbol already defined: "id"
C:\SAMP\Server\filterscripts\lumberjack.pwn(565) : error 008: must be a constant expression; assumed zero
C:\SAMP\Server\filterscripts\lumberjack.pwn(572) : error 010: invalid function or declaration
C:\SAMP\Server\filterscripts\lumberjack.pwn(580) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(598) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(624) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(626) : error 017: undefined symbol "Logs"
C:\SAMP\Server\filterscripts\lumberjack.pwn(672) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(695) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(706) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(729) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(759) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(804) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(817) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(843) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(875) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(899) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(932) : warning 219: local variable "id" shadows a variable at a preceding level
C:\SAMP\Server\filterscripts\lumberjack.pwn(353) : warning 204: symbol is assigned a value that is never used: "UpdateTree"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


22 Errors.



Re: Filterscript Error!! - Toroi - 10.03.2017

did you download all the required files?

Quote:

#include <evf> // by Emmet_ - https://sampforum.blast.hk/showthread.php?tid=486060
#include <izcmd> // by Yashas - https://sampforum.blast.hk/showthread.php?tid=576114
#include <progress2> // by [HLF]Southclaw - https://sampforum.blast.hk/showthread.php?tid=537468
#include <sqlitei> // by Slice - https://sampforum.blast.hk/showthread.php?tid=303682
#include <sscanf2> // by ****** - https://sampforum.blast.hk/showthread.php?tid=602923
#include <streamer> // by Incognito - https://sampforum.blast.hk/showthread.php?tid=102865
#include <YSI\y_iterate> // by ****** - https://sampforum.blast.hk/showthread.php?tid=570884



Re: Filterscript Error!! - ManIsHere - 10.03.2017

Yeah i did download them all. but still it gave same errors... also evf.inc is not working good and SQLite also crashes my FS. if i remove SQLite, it does not crashed but gives errors of SQLite(of cource if i remove include file, it will give errors..)

please help.


Re: Filterscript Error!! - ManIsHere - 10.03.2017

Help me pls


Re: Filterscript Error!! - TitanX - 10.03.2017

please you can request his help in his thread here https://sampforum.blast.hk/showthread.php?tid=608851

this is section of your own scripts not copyed scripts


Re: Filterscript Error!! - ManIsHere - 11.03.2017

Quote:
Originally Posted by TitanX
Посмотреть сообщение
please you can request his help in his thread here https://sampforum.blast.hk/showthread.php?tid=608851

this is section of your own scripts not copyed scripts
if you see last page, there are many complaints already there and no one is solved it.


Re: Filterscript Error!! - Sew_Sumi - 11.03.2017

Quote:
Originally Posted by TitanX
Посмотреть сообщение
please you can request his help in his thread here https://sampforum.blast.hk/showthread.php?tid=608851

this is section of your own scripts not copyed scripts
You mustn't understand the concept of help...



Before you go through with the below suggestions or information, you _NEED_ to try get those includes working, as they are likely to cause some of the errors that come from below. The warnings are just warnings, the errors though are what's stopping it compiling. You can run with errors, it may lead to unexpected results, but errors will not allow it to compile at all.


Most of these errors are basic errors.

Код:
local variable "id" shadows a variable at a preceding level
means new id; is defined above the section of code where it's used at. You can either delete the one at the top of the script, or go through and remove each one that is erroring subsequently.

Код:
function heading differs from prototype
Means the definition of the function, is different to the public line.

Код:
error 017: undefined symbol "objectid"
objectid isn't defined. (You need new objectid; in the script)

Код:
invalid function or declaration
Means the function on that line, isn't "made"... More than likely through an include failing to be included.

Код:
symbol already defined: "SetDynamicObjectPos"
symbol already defined: "Streamer_SetFloatData"
symbol already defined: "stmt_bind_value"
means the functions are being defined, when they've already been defined.

Код:
undefined symbol "Logs"
Logs isn't defined. ( new Logs; )

Код:
symbol is assigned a value that is never used: "UpdateTree"
You have new UpdateTree; yet don't use it. This is more likely a timer variable.


Re: Filterscript Error!! - ManIsHere - 11.03.2017

Thanks for giving your answer time for a long answer for my help. now, if i had scripted it i would have solved errors but but i have not done it. i am a beginor at scripting so i will try to do it my self, but if i dont able to, please help me then.

Thanks, rep+


Re: Filterscript Error!! - Nathan94 - 31.01.2019

The problem is solved this way: https://forum.sa-mp.com/showpost.php...7&postcount=56