LSPD can find the Vehicle Plate(strcmp problem)
#1

Hello everyone,
I just made the dialog wich helps the LSPD to find peoples by Vehicle Plates(intelexe's RP)

pawn Код:
if(dialogid == 6)
    {
        for(new i=1; i<MAX_VEHICLES; i++)
        {
            if(strcmp(inputtext,CarInfo[i][cPlate],true))
            {
                if(CarInfo[i][cOwned] == 1)
                {
                    SendClientMessage(playerid,COLOR_GREEN,"|_________Vehicle Information(plate)________|");
                    format(string,sizeof(string),"Vehicle Owner:%s   Ticket:%d",CarInfo[i][cOwner],CarInfo[i][cParkTicket]);
                    SendClientMessage(playerid, COLOR_GRAD2,string);
                    format(string, sizeof(string), "Vehicle Ticket Value : $%d  Ticket Officer:%s",CarInfo[i][cParkTicket], CarInfo[i][cTicketer]);
                    SendClientMessage(playerid, COLOR_GRAD2,string);
                }
            }
        }
    }
It is working perfectly but it shows all the vehicles,not the one wich was requested by the plate.
Reply


Messages In This Thread
LSPD can find the Vehicle Plate(strcmp problem) - by SkizzoTrick - 10.02.2011, 18:57
Re: LSPD can find the Vehicle Plate(strcmp problem) - by Kwarde - 10.02.2011, 19:10
Re: LSPD can find the Vehicle Plate(strcmp problem) - by SkizzoTrick - 10.02.2011, 19:12
Re: LSPD can find the Vehicle Plate(strcmp problem) - by Kwarde - 10.02.2011, 20:36
Re: LSPD can find the Vehicle Plate(strcmp problem) - by SkizzoTrick - 11.02.2011, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)