Read_agv...Error?
Hey, i was making my own version of amx_slap, and read_argv didnt work out to well for me.
PHP Code:
PHP Code:
|
Re: Read_agv...Error?
Quote:
All what is highlighted is wrong : Code:
|
Re: Read_agv...Error?
Read some tutorials there : http://wiki.amxmodx.org/Category:Scripting_(AMX_Mod_X)
|
Re: Read_agv...Error?
Quote:
|
Re: Read_agv...Error?
Read more tutorials, you will your errors fastly. Follow the link above.
|
Re: Read_agv...Error?
Ok, i went through this http://wiki.amxmodx.org/Intro_to_AMX_Mod_X_Scripting at the hp tutorial thing.
PHP Code:
PHP Code:
PHP Code:
|
Re: Read_agv...Error?
Code:
read_argv |
Re: Read_agv...Error?
That's better.
You forgot to use cmd_target to retrieve the player index you want to slap. Also, a for() loop won't do what you want to do because such a loop in done in an instant, means the player will be slapped 3 times at the exact same time. You would have to set a task and use the flag "a" (repeat) in it with the number of slap ou want. |
Re: Read_agv...Error?
Thanks connor, but how do i set the for loop to a?
Also, i feel so silly for readargv instead of read_argv, i remember searching read_argv on the func wiki and just feeling that mood where you want to scream WHAT THE HELL!! and wonder why it wasnt working LOL |
Re: Read_agv...Error?
Heres a hint
http://www.amxmodx.org/funcwiki.php?go=func&id=253 Just make sure id is the id of player you want to slap. PHP Code:
|
| All times are GMT -4. The time now is 08:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.