[Solved] Button IDs are Changing
I coded a Plugin that opens the Jails in Jailbreak
but after 1 Day / RR The Button IDs are changed lower or higher why are the Button IDs Changing? How i can solve this Problem? |
Re: Button IDs are Changing
Because you may have added some plugins that create some entities at plugin_precache.
You should save buttons by model or target or something that won't change. |
Re: Button IDs are Changing
and how i get those values?
|
Re: Button IDs are Changing
Code:
For fakemeta, use pev() instead of entity_get_string() and change EV_SZ_* to pev_*. |
Re: Button IDs are Changing
so as Model it shows me
*27 How i can convert it back in Ent ingam and Press The Button manualy PHP Code:
|
Re: Button IDs are Changing
find_ent_by_model()
|
Re: Button IDs are Changing
PHP Code:
Where to put the *27 ?? buttonid = find_ent_by_model(*27,"weaponbox","models/w_scout.mdl") ? Sorry i dont know this Funcktion so can you please explain me how i use it now? |
Re: Button IDs are Changing
http://www.amxmodx.org/funcwiki.php?...odel&go=search
To find an entity classname, it is a string from EV_SZ_classname (or pev_classname). |
Re: Button IDs are Changing
okay
But how i use now the Variable ( mysql_openbuttonid returns *62 ) PHP Code:
|
Re: Button IDs are Changing
You have to read as a string.
Code:
|
| All times are GMT -4. The time now is 10:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.