[Solved]Simple code to detect country
*EDIT* I know there are a lot of plugins that do similar things, but I decided to write my own because I disliked many of the current ones. Also, it helps me learn small :(.
Still learning, but I'm working on code to detect, then display a users country based on say input from a user. It is just for fun, but I would like to get it functioning. For example: A user types '/country playername' in all chat, then I want it to display the user country to everyone. I guess I'm still retarded cause I can't get it to work :(. Code:
|
Re: Simple code to detect country
I think I found my problem. It is the read_argv command, it doesn't seem to be reading anything it all.
Is there a different command I should use to read chat, or something will read all the chat, and I can get the part I want? |
Re: Simple code to detect country
You have to add after the reading : remove_quotes( args )
You should debug by yourself. Put a client_print() or whatever and see ! |
Re: Simple code to detect country
Quote:
Everything has been fixed. |
Re: [Solved]Simple code to detect country
Since when could you read a print_chat?
|
| All times are GMT -4. The time now is 16:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.