I'll reference your memory in a minute!
1 Attachment(s)
Hello, I am working on a plugin but when ever I try to compile it I get an error in the command window
Quote:
Is this some kind of newb scripting effort? Or is it something wrong with the compiler. I attached that .sma, like I said, i am a newb at this so don't laugh :) |
1: The compiler shouldn't crash, looks like a bug :] (00000008 is invalid memory).
You can't do things like this: Code:
String addition doesn't work because they are character arrays. It must be this: Code:
Also, unless you reference your helper functions in other places like this: set_task(... "textid"...) or register_event(..."textid") etc They shouldn't be public. |
Thanks for your help BAILOPAN. I did string addition because of my old pascal days :)
and yes I am going to use the set_task function, but thanks anyway :) |
adding a string class would be rather handy...
|
Adding random things like this into a language set is no easy task. While we have thought of making a string tag and attaching properties to it, it would be a separate "string engine" and we'd need to run a separate (or the given) garbage collector for AMX (I think).
Maybe for HL2 ;] |
Woah. I hadn't even thought about AMX-X for HL2.
|
| All times are GMT -4. The time now is 14:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.