13.05.2013, 12:38
Not really - That CMD won't work.
Lemme explain why
- If you check at wiki the kick function.
You'll find that it is only usable like that -
You can't specify a certain ID - So that won't work
Inorder to get another player ID - You'll need to use SSCANF or strtok
However - SSCANF won't work with strcmp [The command processor]
So you'll have to learn strtok inorder to make CMD's that would interact with other ID's.
Notice : "playerid" means the ID of the player that used the CMD.
Lemme explain why
- If you check at wiki the kick function.
You'll find that it is only usable like that -
PHP код:
kick(playerid);
Inorder to get another player ID - You'll need to use SSCANF or strtok
However - SSCANF won't work with strcmp [The command processor]
So you'll have to learn strtok inorder to make CMD's that would interact with other ID's.
Notice : "playerid" means the ID of the player that used the CMD.