Get different info form one cvar
Hi
How to get different info from one cvar (in cfg file). I mean how to transform: Code:
some_cvar "lol"to Code:
cvar [0] = lolSorry 4 bad description but I had no idea how to tell this. |
Re: Get different info form one cvar
Example:
PHP Code:
|
Re: Get different info form one cvar
Are you trying to convert individual cvar pointer variables to an array of cvar pointers?
PHP Code:
|
Re: Get different info form one cvar
i think he wants todo like for example amx_imessage, you can do multiple thing with that
and btw its not cvar, its like an console command :] |
Re: Get different info form one cvar
Yes, I don't want to use 5 items, I want to use one command.
First method is not working for me, but these two definitions (max cvar and lenght) are good :P |
Re: Get different info form one cvar
See register_srvcmd("amx_addserver", "addserver")
http://forums.alliedmods.net/showpos...66&postcount=6 |
Re: Get different info form one cvar
Ok one more thing
I can check args, but how to go to next line some_cvar "lol" some_cvar "lol2" First line is checked by read arg 1, but how to check lol2? |
Re: Get different info form one cvar
Quote:
It will be read by read_argv(1), it doesn't change. Everythime that "some_cvar" is executed you will be starting over essentially (if you are registering it as a server command). |
Re: Get different info form one cvar
So what code should I add to make it work?
|
Re: Get different info form one cvar
PHP Code:
|
| All times are GMT -4. The time now is 09:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.