Very simple Question( Rep+ )
#4

Quote:
Originally Posted by antonio112
Посмотреть сообщение
pawn Код:
YCMD:help(playerid, help, params)
{
        if(strcmp(params, "commands", false) == 0)
    {
               SendClientMessage(playerid, -1, "Help commands here.");
           return 1;
    }
    else if(strcmp(params, "admin", false) == 0)
    {
        SendClientMessage(playerid, -1, "Admin help here.");
        return 1;
    }
    else
    {
        SendClientMessage(playerid, -1, "Usage: /help [parameter] (commands, admin)");
        return 1;
    }
Now can you please explain what the STRCMP does, like what does the false and ==0 mean?
Reply


Messages In This Thread
Very simple Question( Rep+ ) - by Azzeto - 16.11.2011, 18:28
Re: Very simple Question( Rep+ ) - by antonio112 - 16.11.2011, 18:33
Re: Very simple Question( Rep+ ) - by SmiT - 16.11.2011, 18:35
Re: Very simple Question( Rep+ ) - by Azzeto - 16.11.2011, 20:10
Re: Very simple Question( Rep+ ) - by FireCat - 16.11.2011, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)