My Taxi Job simple error
#1

Basically everything works, its just that when there are no taxi drivers are on duty, it gets raped and constantly sends that same message, "There are no taxi drivers on duty.".

Heres my code:

PHP код:
command(serviceplayeridparams[])
{
    new 
Usage[30], string[128];
    if(
sscanf(params"z"Usage))
    {
        
SendClientMessage(playeridWHITE"SYNTAX: /service [usage]");
        
SendClientMessage(playeridWHITE"Usage: taxi");
    }
    else
    {
        if(
strcmp(Usage"taxi"true) == 0)
        {
            for(new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnectedEx(i) && (Player[i][Job] == || Player[i][Job2] == 8) && OnTaxiDuty[i] == 1)
                {
                    
SendClientMessage(playeridWHITE"You have requested a taxi. Please be patient, and stay where you are.");
                    
format(stringsizeof(string), "%s[ID:%d] has requested a taxi. To take his call, use /accepttaxi [playerid]"GetNameU(playerid), playerid);
                    
SendClientMessage(iWHITEstring);
                    
PendingTaxiRequest[playerid] = 1;
                }
                else if(
OnTaxiDuty[i] == 0)
                {
                    
SendClientMessage(playeridWHITE"There are no taxi drivers on duty.");
                }
            }
        }
        else
        {
            
SendClientMessage(playeridWHITE"That is an invailid option.");
        }
    }

Reply


Messages In This Thread
My Taxi Job simple error - by Nuke547 - 19.02.2012, 23:06
Re: My Taxi Job simple error - by JhnzRep - 19.02.2012, 23:09
Re: My Taxi Job simple error - by Nuke547 - 19.02.2012, 23:11
Re: My Taxi Job simple error - by JhnzRep - 19.02.2012, 23:15
Re: My Taxi Job simple error - by Nuke547 - 19.02.2012, 23:19
Re: My Taxi Job simple error - by JhnzRep - 19.02.2012, 23:23
Re: My Taxi Job simple error - by Nuke547 - 19.02.2012, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)