error 10 (cs_get_user_armor)
This crashes server after spamming console with error 10 on cs_get_user_armor
Fix please? PHP Code:
|
Re: error 10 (cs_get_user_armor)
Give us the complete error message
|
Re: error 10 (cs_get_user_armor)
I guess that you forgot to check is user alive? It's only guess because I don't know what kind of really are.
|
Re: error 10 (cs_get_user_armor)
Quote:
:) Post full code to better resolution, but you need like this if(Level[id] == 69) change to if((Level[id] == 69) && is_user_alive(id)) |
Re: error 10 (cs_get_user_armor)
i'm guessing the error comes from trying to set armor +30 with CS_ARMOR_NONE type
edit: or not |
Re: error 10 (cs_get_user_armor)
Quote:
They should be switched for best result. |
Re: error 10 (cs_get_user_armor)
Quote:
So it should be like this? PHP Code:
|
Re: error 10 (cs_get_user_armor)
It depends how the complete function looks. For this small script either way is fine...
Code:
Code:
|
Re: error 10 (cs_get_user_armor)
No more console errors, i think it works, thanks.
|
Re: error 10 (cs_get_user_armor)
Quote:
When you use a IF statement correctly you do not need an return in your code... |
| All times are GMT -4. The time now is 18:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.