Strange
#1

Hi all,
I downloaded my ladmin4v2 (Lethal Admin script) again after I messed it up :$.

But, at first I got the cannot read from file (lethaldudb2) error so I changed it to #include <lethaldudb2> instead of #include <includes/lethaldudb2>.

But now I get this, I am not a good PAWN scripter so I don't know what to do about it :

Код:
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1042) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1084) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1084) : error 033: array must be indexed (variable "tmp3")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1084) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1102) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1102) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1102) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1118) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1118) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1118) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1134) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1134) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1134) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1150) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1150) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1150) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1165) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1165) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1165) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1181) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1181) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1181) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1197) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1197) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1197) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1214) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1214) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1214) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1246) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1246) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1246) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1262) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1262) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1262) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1278) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1278) : error 033: array must be indexed (variable "tmp2")
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1278) : warning 203: symbol is never used: "Index"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1294) : error 017: undefined symbol "strtok"
C:\Users\Lars\Documents\samp03bsvr_R2_win32\filterscripts\ladmin4v2.pwn(1294) : error 033: array must be indexed (variable "tmp2")

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


26 Errors.
I guess there is just a missing { or } but that's what makes it strange because LuxAdmin 1.6 has the same problems when compiling.

So that's actually very strange because I didn't change anything more apart from that I changed the include so it could read from lethaldudb2.inc

Any solutions? Or a better admin script (this was the best I've seen), I get the same errors with LuxAdmin 1.6 though so that isn't an option
Reply
#2

Yes, I know maybe it's a noob question. But didn't found my problem yet so thought I would ask it here. Is there anything I can do about this problem?
Reply
#3

People should start reading their errors.

1)
Quote:

array must be indexed (variable "tmp2")

If you for example do
Код:
if(tmp2 == 'A')
then you will get an error like in the quote above. You need to define which character of the string "tmp2" is compared to "A" in the example.
Код:
if(tmp2[0] == 'A')
2)
Quote:

error 017: undefined symbol "strtok"

Means your using strtok somewhere in your script without having the actual function included. You're telling the script to use something it does not know.

3)
Quote:

warning 203: symbol is never used: "Index"

You've defined a value named Index which you've never used. Either use it somewhere or remove it to make the warnings gone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)