[HowTo] Fast command processor: DCMD (0.3 Ready)
#2

Example with multiple parameters:
pawn Code:
dcmd_giveweapon(playerid,params[]) {
 new index=0;
 new nick[255]=strtok(params,index);
 new weapon[255]=strtok(params,index);
 new amount=strval(strtok(params,index));
 // ...
}
Example to get params.
You can additionall also use sscanf to properly parse the params.

- Draco

PS: Sorry for doublepost, but the topic was lost, so this response, so the possibility to link it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)