Player Out Of Range
I have a problem with my plugin. When i launched my server it gave me this:
Code:
[CSTRIKE] Player out of range (0)PHP Code:
I think i messed up with set_task Sorry for my bad english. |
Re: Player Out Of Range
Noone knows? ;(
|
Re: Player Out Of Range
|
Re: Player Out Of Range
Ok i fixed that...
Now i can't slay anything Code:
] amx_slayer THere's my code: PHP Code:
Can you please help me? |
Re: Player Out Of Range
Change the number 3 in cmd_access to 2.
This number is the number of 'arguments' the command expects. If it gets the wrong number it will return an error and show you the 'usage' thing. Since you want amx_slay <command>, this is 2 arguments. (the command counts as 1) |
Re: Player Out Of Range
Thnx very very much..
but now i cant slay anybody.. Code:
amx_slayer @CT < nothing happensSomething with register_forward or register_event? maybe? i tryed almost everything... with tasks it say's "Player Out OF Range (0)" I don't know what to do ;( i really need to finish this plugin... Thnx for again for help. EDIT: please don't give a link to SEARCH i already searched... and looked at many codes... still nothing Sorry for my bad english |
Re: Player Out Of Range
Well the way your trying to do it isn't that efficient but..
The new players[32] section onwards needs to be moved out the if statement. Make the third if just team=3 and then end it. The problem is your get_players and for loop are only reached if you input @all. The other two options skip this because its inside the if statement. Also you need to change check_slay(id) to check_slay(players[i]) |
Re: Player Out Of Range
Thnx very much!
|
Re: Player Out Of Range
Tho I won't even try to undestand what you did there, place
PHP Code:
You should do this EVERY TIME you deal with player ids in delayed tasks !!! |
| All times are GMT -4. The time now is 10:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.