NEeds Tutarial for CMD without STROTK and SSCANF!!
#4

Here it is:

pawn Код:
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;
 }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)