Help out for newbie
Hi guys excuse me for my noob questions, but Im still learning.
So I have this code: Code:
// (c)Lawnmoverman - nozgaming.euCode:
.sma(56) error 017 undefined symbol "hacker_id" |
Re: Help out for newbie
Thats because the hacker_id and steam_id doesn't exists on their respectives functions. Just change they to 'id'
And don't use so much tasks together, they can fail sometimes. And i've see that all tasks just have one second of difference, so you can use like this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Here: PHP Code:
Here: PHP Code:
Here: PHP Code:
Here: PHP Code:
If you want to add a phrase on the reason, like amx_ban EFFx 60 He is cheating, you should add ^" ^" on the message, will be like Code:
amx_ban EFFx 60 ^"He is cheating^"Will be something similar at this: PHP Code:
|
Re: Help out for newbie
This is skill.! You have totally optimized everything. I will try it tommorow, repeat set_task I can use only for snapshots, I need specified time for other cases because of effects and sound lenght. Why you use spk in case 2?
|
Re: Help out for newbie
I had a code like this aswell and a guy told me to use a function like that:
PHP Code:
And you can use both of formats on case 2, play or spk are the same. Edit: Sorry, I've added 5.0 on set_task(), It should be 1.0. |
Re: Help out for newbie
I edited this like this:
PHP Code:
PHP Code:
|
Re: Help out for newbie
Look how your function looks and how you call it. Also try to understand the error message. It clearly says that the number of arguments is wrong.
|
Re: Help out for newbie
I think that I got it but as I dont know well this programming language I completely eliminated username. But after compiling it doesnt work. I think that problem is here:
PHP Code:
|
Re: Help out for newbie
Code:
Code:
Code:
Code:
Code:
Code:
You don't need TASK_BAN at all. |
Re: Help out for newbie
Ok I got this code working:
PHP Code:
1) case 0: works ok but print_chat [AUTHID] is showing me only one number it think it is incomplete valve or steamid. I think replacing $d with #$d will fix it, what do you think? 2) case 1: doesnt work both client_cmd and server_cmd 3) case 2: works only server_cmd 4) case 3: works ok If I execute these commands idividually as admin on some player these cammands work good. Any help? :avast: Forgot to mention that im executing in cs 1.6 |
Re: Help out for newbie
@Black_Rose,
I think he should use the TASK_BAN and check if the task exists on disconnect forward, because if he use the command on the enemy and him disconnects, he can retry and doesn't got banned. @Lawnmoverman, Try if this works: PHP Code:
PHP Code:
PHP Code:
You shouldn't use get_user_userid() for take user's steamid, get_user_userid() is used for pickup the user's index in-game. Type status ( or stats, Idk ) on console, and you will see 1, 2 ,3 ,4 , 10 before the user's name. You should use get_user_authid(). The format is like get_user_name(), but the steamid's size is more than the name. -> PHP Code:
The format $s/$d doesn't exists on amxx language dude. You can search all these formats for know what are they. case 1, 2, 3, Are you sure the amx_shake and these sounds exists? Check it |
| All times are GMT -4. The time now is 20:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.