23.08.2008, 11:24
Example with multiple parameters:
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.
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.
- Draco
PS: Sorry for doublepost, but the topic was lost, so this response, so the possibility to link it.