get_user_hitzones error
Hi.
I can't get user hitzones in a right way , and I don't understand what's not right... for example Code:
new hitzones = get_user_hitzones ( id , 0 )Code:
[FUN] Player out of range (0)Code:
new hitzones = get_user_hitzones ( id , 2 )Regards |
Re: get_user_hitzones error
Show more code
|
Re: get_user_hitzones error
PHP Code:
|
Re: get_user_hitzones error
You need to get a target. 0 is invalid.
|
Re: get_user_hitzones error
maybe new victim = read_data(2) ?? id realy know what he want to do :D
|
Re: get_user_hitzones error
From fun.cpp:
Code:
static cell AMX_NATIVE_CALL set_user_hitzones(AMX *amx, cell *params) // set_user_hitzones(index = 0, target = 0, body = 255); = 3 argumentsWhen using 0 for player or target, it loops through all players to set the value. Therefore, if you set the hitzones like this: Code:
Then you can get them like this: Code:
|
Re: get_user_hitzones error
Yeach , this is true if I want to get hitzones of a specific player to a specific player. But even the get_user_hitzones description tells :
Quote:
PHP Code:
|
Re: get_user_hitzones error
Quote:
You still have to supply a target to get_user_hitzones( ) because it checks if it is a player. Code:
|
Re: get_user_hitzones error
Thank you , I think I'll use this method , it will be faster than trying to get that command work as it should :)
|
| All times are GMT -4. The time now is 18:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.