Bitsums and weapons
Why this code doesn't get all weapons?
PHP Code:
Code:
1 - weapon_p228 |
Re: Bitsums and weapons
Because there are only 25 flags (from a to z).
|
Re: Bitsums and weapons
somebody knows which flag for (1<<31)?
|
Re: Bitsums and weapons
Try "abcdefghijklmnopqrstuvwxyz{|}>?@"
Edit : Seems to work : Code:
#1 33 read_flags("!") == 1 | 1<<0 == 1Edit2 : If you need to use get_flags, then you need to use following stock and to put it either in a .inc file, either BEFORE plugin_init(). PHP Code:
|
Re: Bitsums and weapons
Ty but i have a question, how i can use that stock ?
|
Re: Bitsums and weapons
The same way you would use the default get_flags, so you ask, it means you don't need to use it.
get_flags is the "reversion" or read_flags, from integer value you retrieve the string, but reading amxx sources, it appears that it only supports flags between 1<<0 and 1<<25. |
Re: Bitsums and weapons
Ty, i'll use it
|
| All times are GMT -4. The time now is 23:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.