Raised This Month: $ Target: $400
 0% 

Command accepting partial names?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-06-2004 , 02:11   Command accepting partial names?
Reply With Quote #1

How can I get a command to accept partial names? This is my code so far:
Code:
public changeboost(id) {     if(! get_user_flags(id) && ADMIN_KICK)         return PLUGIN_HANDLED     new target[31]     new boost[20]     new tgtid     new boostamo     read_argv(1,target,30)     read_argv(2,boost,19)     tgtid = get_user_index(target)     boostamo = str_to_num(boost)     if(boostamo < 0)         boostamo = 0     boostamount[tgtid] = boostamo     return PLUGIN_HANDLED }
Thank you for your time.
__________________
twistedeuphoria is offline
 


Thread Tools
Display Modes

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 17:24.


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