Raised This Month: $ Target: $400
 0% 

problem with reading arguments...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 03-23-2011 , 16:36   problem with reading arguments...
Reply With Quote #1

Hey
I have this code:
PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd("say .startwar""hook_startwar")
}
public 
hook_startwar(idlevelcid)
{
        new 
wartype[6]
        
read_argv(2wartype5)
        
client_print(idprint_chat"you chosed a %s match"wartype)

When I type .startwar it prints
Code:
you chosed a  match
But when I type .startwar blabla it doesn't print anything...

If I type in console say .startwar blabla it will print:
Code:
you chosed a blabla match
Why does this happen?
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha 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 14:30.


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