View Single Post
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