convert this command to strcmp
#1

how to convert this command in strcmp ?

Код:
CMD:joinrace(playerid, params[])
{
    if(!strlen(params)) return SendClientMessage(playerid, 0xFF0000, "Please enter a race id to join or type /races");
    new raceid = strval(params);
    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;
}
Код:
error 017: undefined symbol "params"
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)