16.04.2012, 11:16
I need a Tutatial for CMDS without STROTK and so... I think it is better to understand and Easy to Know it!! and More Easy to make a CMD!!
public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/help", true) == 0) {
//HELP COMMANDS
return 1;
}
return 0;
}
but STRCMP is more Easier than Strtok!! I really can't understand this Strtok!!
|