Lots of errors with my script
#1

Here's my code:
http://pastebin.com/Z5wH8ZjZ

Errors:
Код:
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1254) : error 017: undefined symbol "IncreasePlayerXp"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1266) : error 017: undefined symbol "IncreasePlayerXp"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1275) : error 017: undefined symbol "IncreasePlayerXp"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1284) : error 017: undefined symbol "IncreasePlayerXp"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1293) : error 017: undefined symbol "IncreasePlayerXp"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1348) : error 017: undefined symbol "MessageToAdmins"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1350) : error 017: undefined symbol "SaveIn"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1357) : error 017: undefined symbol "MessageToVIPs"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1359) : error 017: undefined symbol "SaveIn"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1468) : error 017: undefined symbol "strtok"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1468) : error 033: array must be indexed (variable "tmp")
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1501) : error 017: undefined symbol "SaveIn"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1503) : error 017: undefined symbol "MessageToAdmins"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1466) : warning 203: symbol is never used: "Index"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1658) : error 017: undefined symbol "strtok"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1658) : error 033: array must be indexed (variable "tmp")
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1659) : error 017: undefined symbol "strtok"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1659) : error 033: array must be indexed (variable "tmp2")
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1690) : error 017: undefined symbol "SaveIn"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1697) : error 017: undefined symbol "SendCommandToAdmins"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1657) : warning 203: symbol is never used: "Index"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1713) : error 017: undefined symbol "strtok"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1713) : error 033: array must be indexed (variable "tmp")
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1714) : error 017: undefined symbol "strtok"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1714) : error 033: array must be indexed (variable "tmp2")
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1745) : error 017: undefined symbol "SaveIn"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1752) : error 017: undefined symbol "SendCommandToAdmins"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1712) : warning 203: symbol is never used: "Index"
C:\Users\Keegan\Desktop\gamemodes\MWFFA.pwn(1765) : error 017: undefined symbol "strtok"

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


26 Errors.
Reply
#2

Simple, there is a bracket missing. I think there is programs to tell you where it's missing. Or take a look to the last thinks you've done.
Reply
#3

http://forum.sa-mp.com/showthread.ph...light=brackets
Reply
#4

Actually, I have used 2 bracket counters, and they both returned that there is no brackets missing.
Reply
#5

Strtok is outdated. That's your problem really...
Reply
#6

I've tried every other processer, none of them have worked. And it worked before. So thats not the problem.
Reply
#7

Well, strtok is outdated, I would suggest ZCMD, considering it's fast, and easy.
Reply
#8

And besides... I am not changing EVERY single command. Now can someone else post and help? I really need help.
Reply
#9

******, sorry for the late reply, but i searched through all my code, couldn't find anything. But can someone search through my code?
Reply
#10

As y less says, indent your code, and it sill be way easier to find your problem.
Notepad++ has a good build in indentation function build in.

Also notepad++ has a good bracket finder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)