SA-MP Forums Archive
so much undefined errors? - 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: so much undefined errors? (/showthread.php?tid=460047)



so much undefined errors? - pluslife - 26.08.2013

ey, ive got a shitload of undefined errors I DONT KNOW WHY. i was just scripting like normal, but then out of sudden these errors popped up: (ignore the loose indentation)

Код:
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(2294) : error 017: undefined symbol "InvalidCaps"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(2296) : error 017: undefined symbol "IsInvalid"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(2298) : error 017: undefined symbol "TooManyCaps"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(2299) : error 017: undefined symbol "ConsecutiveCaps"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(2300) : error 017: undefined symbol "CapsOnEnd"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(2301) : error 017: undefined symbol "TooShortOnEnd"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3369) : warning 217: loose indentation
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3392) : error 017: undefined symbol "GetUnixTime"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3396) : error 017: undefined symbol "GetUnixTime"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3403) : error 004: function "InitPlayer" is not implemented
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3588) : error 004: function "ProxDetector" is not implemented
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3634) : error 004: function "CreateProgressBar" is not implemented
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3635) : error 017: undefined symbol "ShowProgressBarForPlayer"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3636) : error 017: undefined symbol "SetProgressBarValue"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3637) : error 017: undefined symbol "UpdateProgressBar"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3688) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3717) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3721) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3723) : error 017: undefined symbol "SetPlayerArmourEx"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3893) : error 017: undefined symbol "DropWeapons"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3894) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3928) : error 017: undefined symbol "SendFamilyMessage"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3949) : error 004: function "ProxDetector" is not implemented
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3973) : error 017: undefined symbol "AddItem"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3977) : error 017: undefined symbol "AddItem"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3981) : error 017: undefined symbol "AddItem"
C:\Users\My\Documents\s\gamemodes\bsrp.pwn(3987) : error 017: undefined symbol "AddItem"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Please help?! I got no backups sadly...ll:


Re: so much undefined errors? - bigcomfycouch - 26.08.2013

You've probably forgotten a bracket somewhere.


Re: so much undefined errors? - -Prodigy- - 26.08.2013

If that wasn't happening before you started adding new code, then you most likely forgot a closing bracket.


Re: so much undefined errors? - pluslife - 26.08.2013

Quote:
Originally Posted by bigcomfycouch
Посмотреть сообщение
You've probably forgotten a bracket somewhere.
Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
If that wasn't happening before you started adding new code, then you most likely forgot a closing bracket.
How do I find the forgotten bracket?
There's 50,000 lines in there, I can't search through them all!


Re: so much undefined errors? - Skribblez - 26.08.2013

Try going back to the recent lines that you've added. That's how I do it.


Re: so much undefined errors? - PrinceKumar - 26.08.2013

Have u deleted #include <progress> or something like that from ur gm?


Re: so much undefined errors? - pluslife - 26.08.2013

Quote:
Originally Posted by Skribblez
Посмотреть сообщение
Try going back to the recent lines that you've added. That's how I do it.
i looked through them.. i cant see any missing brackets!


Re: so much undefined errors? - Skribblez - 26.08.2013

Here's something I've found:
https://sampforum.blast.hk/showthread.php?tid=291018

I haven't tried it though.


Re: so much undefined errors? - dowster - 26.08.2013

Try to copy and paste your code into TidyPawn and look for where the indentation goes all wacky. That should lead you to your missing bracket.