AMXX Errors
Hey there,I need a little help,I checked everything twice but couldn't figure out whats the problem
These are the errors: ( Generated in Console ) L 06/16/2012 - 01: 31:18: [FUN] Invalid player 1 L 06/16/2012 - 01: 31:18: [AMXX] Displaying debug trace (plugin "adminmode.amxx") L 06/16/2012 - 01: 31:18: [AMXX] Run time error 10: native error (native "set_user_health") L 06/16/2012 - 01: 31:18: [AMXX] [0] adminmode.sma::ClientSpawn (line 21) "set_user_health" is a native from fun.inc but I am including fun,If I change it to fun.inc It displays the same error.Help please I am using the following code: Code:
if (is_user_alive(id)) |
Re: AMXX Errors
check is_user_connected(id)
|
Re: AMXX Errors
I am checking:
Code:
is_user_admin(id) |
Re: AMXX Errors
Test this :
Code:
|
Re: AMXX Errors
Quote:
|
Re: AMXX Errors
Quote:
Quote:
|
Re: AMXX Errors
Why everybody use:
Code:
fw_playerspawn //fw_ before this function Code:
PlayerSpawn |
Re: AMXX Errors
Quote:
Because the function is a forward. So what is a forward ? Hum, it's a special function in fact. Take a look just here : http://www.amxmodx.org/funcwiki.php?go=module&id=24 You see that for instance : Quote:
Quote:
See that :wink: |
Re: AMXX Errors
get_user_flags() doesn't check if the user is connected, so yeah, you should use is_user_connected before using get_user_flags()/is_user_admin() (or any other stock that uses get_user_flags() native) of you aren't sure if the user is in the server:
PHP Code:
The name of the function doesn't matter, it's more depending on your choice and style. |
Re: AMXX Errors
Quote:
|
All times are GMT -4. The time now is 01:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.