Exit Help
#6

Quote:
Originally Posted by Matz
Посмотреть сообщение
true = 1 already

by Default
pawn Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
    {
        TogglePlayerControllable(playerid, 1);
        return 1;
    }
I know it is the same... but you should use 'true' to help reduce confusion between 0 and 1 and what they stand for.
Oh and... it shouldn't be 10... /exit is only 5 characters long...
pawn Код:
if(strcmp(cmdtext, "/exit", true, 5) == 0)
would be the correct syntax.
Reply


Messages In This Thread
Exit Help - by Akcent_Voltaj - 18.07.2012, 12:14
Re: Exit Help - by clarencecuzz - 18.07.2012, 13:07
Re: Exit Help - by Matz - 18.07.2012, 13:08
Re: Exit Help - by Rudy_ - 18.07.2012, 13:10
Re: Exit Help - by RenSoprano - 18.07.2012, 13:10
Re: Exit Help - by clarencecuzz - 18.07.2012, 13:19
Re: Exit Help - by Akcent_Voltaj - 18.07.2012, 13:28
Re: Exit Help - by Akcent_Voltaj - 18.07.2012, 13:45
Re: Exit Help - by IstuntmanI - 18.07.2012, 13:49
Re: Exit Help - by L.Hudson - 18.07.2012, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)