Raised This Month: $ Target: $400
 0% 

Using GetCmdArg in new ""


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 12-27-2013 , 14:29   Using GetCmdArg in new ""
Reply With Quote #1

Hi guys i've got some problem with my code
Here i'm trying to get command argument then create new variable that uses arg that i've grabbed as it's name
PHP Code:
public Action:CreateVar(args)
{
    
decl String:arg1[64];
    
GetCmdArg(1arg1sizeof(arg1))
    new 
arg1

So something like this:
PHP Code:
!createvar "Gaben" 
Would result in
PHP Code:
new Gaben 
- Help would be really helpful
- Thanks
__________________
...

Last edited by Oshizu; 12-27-2013 at 14:30.
Oshizu 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 22:36.


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