Evaluate string as amxx code
Hi everybody. I've tried to get enwer in forum serch and google, but failed. May be i don't know what to look for.
Does anybody know a way to eval string as amxx code? 4 example: Code:
amx_eval('client_print(0, print_chat, "Hello World");'); |
Re: Evaluate string as amxx code
Why would you do that?
I'm just guessing but I would say not possible. The code would not be compiled. |
Re: Evaluate string as amxx code
Explain what exactly you are trying to do.
|
Re: Evaluate string as amxx code
Quote:
i have 32 players and want to give them different sets of items and abilities. each set is not predefined and is genererated online depending on several triggers. of course i can devide all of the sets into single operators and write procedures for each of them. but this is more complex. and each time i imagine new set i have to write new procedures and recompile plugin i know that plugins must be compiled first and thus "amx_eval" is almost impossible. but what if smb knows a module or libruary or smth else, that can help me |
Re: Evaluate string as amxx code
Do you know cvars exist ? :mrgreen:
|
Re: Evaluate string as amxx code
Quote:
|
Re: Evaluate string as amxx code
PlayingTalking, lolbot.ru ??
|
Re: Evaluate string as amxx code
знаешь ответ на мой вопрос, дружище?
|
Re: Evaluate string as amxx code
Not possible because amxx plugins are compiled to virtual bytecode, which are executed at runtime. It is not an interpreted language.
|
Re: Evaluate string as amxx code
tnx. that's what i's warring about :(
thread may be closed |
| All times are GMT -4. The time now is 02:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.