AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Read_arg integer (https://forums.alliedmods.net/showthread.php?t=298912)

CreativeTR 06-26-2017 07:52

Read_arg integer
 
PHP Code:

new max_level 30;
public 
changeMaxLevel(idlevelcid) {
    if (!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
        
    
//.... How to get an integer from console...

    
client_print(idprint_notify"Max Level is changed. New max level is %d"maxlevel_value)
    return 
PLUGIN_HANDLED



HamletEagle 06-26-2017 09:01

Re: Read_arg integer
 
Search for read_argv.

Craxor 06-26-2017 09:26

Re: Read_arg integer
 
Code:
new szArg1[11]; read_argv(1, szArg1, charsmax(szArg1) ); new iArgumentInteger = str_to_num(szArg1);

PRoSToTeM@ 06-27-2017 10:24

Re: Read_arg integer
 
read_argv_int

fysiks 06-27-2017 18:55

Re: Read_arg integer
 
Quote:

Originally Posted by PRoSToTeM@ (Post 2532025)
read_argv_int

I'm guessing this is a 1.8.3 thing since it's not valid for anything up to and including 1.8.2. If so, you should clarify that it's only valid for 1.8.3+.


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

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