SA-MP Forums Archive
Random error generated by defining textdraws? - 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: Random error generated by defining textdraws? (/showthread.php?tid=311705)



Random error generated by defining textdraws? - 2KY - 17.01.2012

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?


Re: Random error generated by defining textdraws? - Babul - 17.01.2012

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
;



Re: Random error generated by defining textdraws? - 2KY - 17.01.2012

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.