26.12.2010, 13:06
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");
Code:
Arg 0: FirstString Arg 1: 2ndString