Raised This Month: $ Target: $400
 0% 

command value not working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
urban_ninja
Senior Member
Join Date: Feb 2009
Old 12-06-2011 , 08:26   command value not working
Reply With Quote #1

Hey, This is my 1st time making a command that carry's a value. Basically how do I get the value from the entered command over to the indexed maxbots?
PHP Code:
maxbots 
The foxbot control command works but the command value is always turning up as 0 regardless of the command value entered by console.

My code:
PHP Code:
new id,level,cid
new maxbots[2]
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd("amx_bot_max""BotCon")
}
public 
BotCon(id)
{
    
read_argv(idmaxbots,2)
    
server_cmd("bot ^"max_bots %d^""maxbots)

__________________

Last edited by urban_ninja; 12-06-2011 at 08:27.
urban_ninja is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode