Help with RATE checker
OK, I'm writing my first script but having problems. Here's the code >
Code:
However, when I run the command it just displays the name of the user. Or sometimes doesn't work at all. Can anyone point me in the right direction. I don't want you to finish it, just tell me where I'm going wrong so I can learn. Is it something to do with strings and integers? Is the GET_USER_INFO returning an integer or string. Also, can anyone explain the %s and %d in text outputs? I can't find anything on these but have seen them used, hense me using then in my script. Thanks in advance. |
Hmm..
Code:
|
Cheers for that but I'm getting an error.
Now, when I enter amx_rc (the command) into the console it says Usage amx_rc <target> which is should. If I enter a username to execute the command on amx_rc username then nothing happens. When I check the logs it says L 05/08/2005 - 21:49:05: [AMXX] Run time error 10 (native) (plugin "rates.amxx") - debug not enabled. :? When I declare the variable RATE (rate[32]) is this declared as a string? If so then it can't be printed as an interger can it until it's converted? |
Try
Code:
|
Why not
Code:
|
Just.. Shh.. :up:
|
Oh because you know mine's better?
wooo |
No, it isn't. Quit trying to get your post count up by posting useless crap. kthnx
|
:(
|
Guy, guys, can't we all just get along? :wink:
Thanks for your help lads. The script is essentially working, except it's not displaying the RATE properly. Instead of 20000 which it should be (for the person I'm checking) it's showing 72 all the time. I'll figure it out, thanks for helping again. |
| All times are GMT -4. The time now is 16:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.