Raised This Month: $ Target: $400
 0% 

read_arv issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-02-2011 , 03:16   read_arv issue
Reply With Quote #1

So im trying to create a command amx_friendlyfire to change the value of mp_friendlyfire

PHP Code:
public cmdFriendlyfire(id)
{
    new 
arg[2];
    
read_argv(1argsizeof(arg));
        
    
server_cmd("mp_friendlyfire %s"arg);
    
    
console_print(id"mp_friendlyfire changed to  %s."arg);
    
    return 
PLUGIN_HANDLED;

This works fine if i use 1 or 0 but if i try 0.25 it juts does 0... BTW i tried using str_to_float and %f... so don't say its because its a int...

****face-palm****** arg[2] HAHAHAHAHA Look don't laugh at me......... I'm tired...

Last edited by Doc-Holiday; 08-02-2011 at 05:15.
Doc-Holiday 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 03:27.


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