Random error generated by defining textdraws?
#1

pawn Code:
new
    Text:2KNOSLabel,
    Text:2KNOSON,
    Text:2KNOSOFF
;
Compiles correctly for any normal filterscript, but for this, for some odd reason, it's not working. The errors generated are listed below:

Quote:

2KNOS.pwn(14) : error 020: invalid symbol name ""
2KNOS.pwn(17) : error 010: invalid function or declaration
2KNOS.pwn(110) : warning 203: symbol is never used: ""

Line 14: Text:2KNOSLabel, (Below "new")
Line 17: ; (under Text:2KNOSOFF)


What the hell is wrong?
Reply
#2

the 2 at the variable name is disturbing. you have to use an alphabetical chatracter as first letter:
pawn Code:
new
    Text:TwoKNOSLabel,
    Text:TwoKNOSON,
    Text:TwoKNOSOFF
;
Reply
#3

Quote:
Originally Posted by Babul
View Post
the 2 at the variable name is disturbing. you have to use an alphabetical chatracter as first letter:
pawn Code:
new
    Text:TwoKNOSLabel,
    Text:TwoKNOSON,
    Text:TwoKNOSOFF
;
Thank you, never knew that. +rep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)