16.08.2011, 14:04
Quote:
You don't even need strtok for this script.
You don't even need DUDB for this script. |
I use this methode for comparing strings, but users can modify it to ther own methode anyways.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/jobinfo", true) == 0 || strcmp(cmd, "/jobinformation", true) == 0 || strcmp(cmd, "/jobhelp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisplayDialogForPlayer(playerid, JOBINFO);
return 1;
}
}
return 1;
}