||===Help with CMD: (Params)===||
#1

Hello guys!
How cand i make this to work? CMD: start lvrace
I dont' want to type in game /start lvrace ! I want to type just /lvrace !

It's like i want to use params in CMD...)
Код:
CMD:start lvrace(playerid, params[])
{
    if(AutomaticRace == true) return SendError(playerid, "Not possible. Automatic race is enabled!");
    if(RaceBusy == 0x01 || RaceStarted == 1) return SendError(playerid, "There's a race currently. Wait first till race ends!");
    LoadRace(playerid, params);
    return ( 1 );
}

and i will use:
CMD:lvrace( playerid, params[] ) return cmd_start lvrace( playerid, params );//ShortCut Race:)
Reply
#2

pawn Код:
CMD:start(playerid, params[])
{
    if(!strcmp(params,"lvrace",true))
    {
        if(AutomaticRace == true) return SendError(playerid, "Not possible. Automatic race is enabled!");
        if(RaceBusy == 0x01 || RaceStarted == 1) return SendError(playerid, "There's a race currently. Wait first till race ends!");
        LoadRace(playerid, params);
    }
    return 1;
}

CMD:lvrace(playerid,params[]) return cmd_start(playerid,"lvrace");//ShortCut Race:)
Reply
#3

Thx mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)