*** This topic title is not descriptive.
#4

Quote:
Originally Posted by Sp3cter
Посмотреть сообщение
I know that , but if command is

pawn Код:
if(strcmp(cmd, "/buyc", true) == 0 || strcmp(cmd, "/buyclotes", true) == 0)
    {
How i can do that in dcmd , so /buyc and /buyclotes work together !
Why didnt scroll down to see it !
pawn Код:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
    dcmd( buyc, 4, cmdtext );
    dcmd( buyclotes, 9, cmdtext );
    return 0;
}

dcmd_buyc( playerid, params[ ] )
{
    // code for command /buyc
    return 1;
}

dcmd_buyclotes( playerid, params[ ] )
{
    // code for command /buyclotes
    return 1;
}
Reply


Messages In This Thread
*** This topic title is not descriptive. - by Sp3cter - 07.11.2012, 12:36
Re: Simple Question - by doreto - 07.11.2012, 12:48
Re: Simple Question - by Sp3cter - 07.11.2012, 12:53
Re: Simple Question - by doreto - 07.11.2012, 12:59
Re: Simple Question - by Sp3cter - 07.11.2012, 13:05
Re: Simple Question - by doreto - 07.11.2012, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)