Command Help
#10

Quote:
Originally Posted by Dark_Kostas
Посмотреть сообщение
Your code won't work because:

1st
if(strcmp("/cop", cmdtext, true, 10) ==0)

The length of the command text is not 10 but 4(and this was the main problem)
This does not in ANY way affect the code! The maximum length of the string is 10. You are not entitled to specify the exact length of the string.

pawn Код:
if (strcmp("/output", cmdtext, true, 20) == 0)
    {
        SendClientMessage(playerid, -1, "true");
        //print("true");
        return 1;
    }
Reply


Messages In This Thread
Command Help - by ReneG - 24.12.2011, 20:09
Re: Command Help - by Jakku - 24.12.2011, 20:11
Re: Command Help - by ReneG - 24.12.2011, 20:16
Re: Command Help - by prisonliferp - 24.12.2011, 20:25
Re: Command Help - by Dark_Kostas - 24.12.2011, 20:31
Re: Command Help - by prisonliferp - 24.12.2011, 20:33
Re: Command Help - by ReneG - 24.12.2011, 20:37
Re: Command Help - by prisonliferp - 24.12.2011, 20:41
Re: Command Help - by Dark_Kostas - 24.12.2011, 20:44
Re: Command Help - by Gh05t_ - 24.12.2011, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)