View Single Post
Old 23/08/2008, 11:24 AM   #2
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 822
Reputation: 70
Default Re: [HowTo] Fast command processor: DCMD (0.2 Ready)

Example with multiple parameters:
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.
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]

DracoBlue is offline