convert this command to strcmp
#5

Quote:
Originally Posted by LarzI
Посмотреть сообщение
Why not use get zcmd and learn to use it?

Anyway..:

pawn Код:
if( !strcmp( cmdtext, "/joinrace", true ))
{
    if( !cmdtext[ 10 ] || cmdtext[ 10 ] == '\1' )
        return SendClientMessage(playerid, 0xFF0000, "Please enter a race id to join or type /races");
       
    new
        raceid = strval( cmdtext[ 10 ] );
    if(raceid > currentraceslot-1)
        return SendClientMessage(playerid, 0xFF0000, "The race ID you have entered is invalid");
    if(RaceInfo[raceid][racejoinable] == false && RaceInfo[raceid][racerunning] == false && InRace[playerid] == -1)
        OpenRace(raceid);
    JoinRace(playerid, raceid);
    return 1;
}
EDIT: The command dosen't work..

RE-EDIT.. solved
Reply


Messages In This Thread
convert this command to strcmp - by NewbieScripter - 09.03.2013, 13:28
Re: convert this command to strcmp - by LarzI - 09.03.2013, 13:32
Re: convert this command to strcmp - by NewbieScripter - 09.03.2013, 13:34
Re: convert this command to strcmp - by LarzI - 09.03.2013, 13:41
Re: convert this command to strcmp - by NewbieScripter - 09.03.2013, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)