Thoughts
Just a thought about function definition :)
A function definition wich will work like a #define (macros) in cpp and like *_var(varname) in ES. Code:
function "myfunc" 1 "echo $1" As : Code:
es_setinfo myvar "test" Code:
es_setinfo myvar "test" Code:
registervar "myfunc" 1 "echo $1" Code:
registervar "myfunc" 1 "echo $1" @Mani It' s a good idea? (ps : i have a lot of stuff but i can break if you want and made some tries :]) Bye, Cr3V3TT3 |
Nobody love this ? :P
... :( Simple example : Server.cfg Code:
function "add" 2 "es_math $1 + server_var($2)" Code:
es_setinfo a 15 Server.cfg Code:
es_setinfo __lib_pi_vars_a 0 Player[0].name Player[1].name [...] Player[63].name Player[64].name Player[0].userid Player[1].userid [...] Player[63].userid Player[64].userid yeah i can do it manualy but i think use this is cool :] |
seems like it would be a nice feature, but i don't have any need for this right now. i'm sure when i find a way to use it, i'll want it very much.
|
Quote:
I think : Code:
function "LoadLib" 1 "exec ES_LIB/$1.rc" Code:
// Is greater than, less, ect.. Code:
function "LoadLib" 1 "echo Loading $1 Module...; exec ES_LIB/$1.rc;echo Module $1 Loaded..." |
Im not really understanding all of it. Never use "cpp" or whatever that is.
I dont really have any use for it now. But like ajax said.....might later. |
All times are GMT -4. The time now is 07:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.