getarg help
#4

pawn Code:
stock TestArg(...)
{
    for(new i; i != numargs(); ++i)
    {
        new
            string[32]
        ;
        for(new x; getarg(i, x) != 0; ++x)
        {
            string[x] = getarg(i, x);
        }
        printf("Arg %d: %s", string);
    }
    return ;
}
pawn Code:
TestArg("FirstString", "2ndString");
will print:
Code:
Arg 0: FirstString
Arg 1: 2ndString
Reply


Messages In This Thread
getarg help - by armyoftwo - 26.12.2010, 13:01
Re: getarg help - by DRIFT_HUNTER - 26.12.2010, 13:04
Re: getarg help - by armyoftwo - 26.12.2010, 13:06
Re: getarg help - by RyDeR` - 26.12.2010, 13:06
Re: getarg help - by armyoftwo - 26.12.2010, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)