get_cvar_num problems
Code:
i think the problem is in the cvar, so i would be very happy, if someone could help me on this one. :) |
Don't use a logevent. Use a regular event like so:
Code:
The cvar "amx_instagib" doesn't exist in this plugin so you must register it. This would be how you would compare the cvar's value: Code:
|
this was just a part of the plugin...
still, god bless you! +karma 4 u |
still, if i type amx_instagibweapon, i get ak47. it depends on the first weapon i would like to give: if it is
Code:
Code:
also, i made the code look like this now: Code:
EDIT: there's no problem, my mistake! |
for what this part of code
Code:
|
Quote:
|
so, i try use this script in my lan-server. When you play - no errors and script is work. But if you use amx_instagibweapon usp and when you type "quit" in console, windows show error near "cannot read a memory".
Code:
|
Code:
|
You want to say that error returned becouse we used a register_logevent function. Right? I have read a documentation "Scripting Tutorial -> Advanced Topics -> Catching Log Messages" and see the example of use register_event.
I'm understand that you help for me, but my question: why I see error? |
| All times are GMT -4. The time now is 16:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.