Problem with hook_say
LOL
Every word i say in chat, me or a random player takes like command in console. If i write in chat "slay player" it will write in my console "amx_slay player" and works for any random player. If i write in chat "lol_why_is_not_working" it will write in my console "amx_lol_why_is_not_working" But i have the "if" in my hook_say, i want only to check if he says /goto or /go PHP Code:
I solved the problem, but i have a question. Q : How could i make only 1 if ? PHP Code:
|
Re: Problem with hook_say
Read arg 1 instead of args, then you don't need to remove quotes.
And do the 2 equal checks in the same line (you forgot 'equal' in your 1st code) : PHP Code:
|
Re: Problem with hook_say
It works
Thank you :D |
| All times are GMT -4. The time now is 07:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.