Raised This Month: $ Target: $400
 0% 

Read_arg integer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CreativeTR
Junior Member
Join Date: Mar 2017
Location: Turkey
Old 06-26-2017 , 07:52   Read_arg integer
Reply With Quote #1

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

CreativeTR is offline
Send a message via Skype™ to CreativeTR
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-26-2017 , 09:01   Re: Read_arg integer
Reply With Quote #2

Search for read_argv.
__________________
HamletEagle is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-26-2017 , 09:26   Re: Read_arg integer
Reply With Quote #3

Code:
new szArg1[11]; read_argv(1, szArg1, charsmax(szArg1) ); new iArgumentInteger = str_to_num(szArg1);
__________________
Project: Among Us

Last edited by Craxor; 06-26-2017 at 09:27.
Craxor is offline
Send a message via ICQ to Craxor
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 06-27-2017 , 10:24   Re: Read_arg integer
Reply With Quote #4

read_argv_int
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2017 , 18:55   Re: Read_arg integer
Reply With Quote #5

Quote:
Originally Posted by PRoSToTeM@ View Post
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+.
__________________

Last edited by fysiks; 06-27-2017 at 18:57.
fysiks is online now
Reply



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 23:11.


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