10.02.2011, 18:57
Hello everyone,
I just made the dialog wich helps the LSPD to find peoples by Vehicle Plates(intelexe's RP)
It is working perfectly but it shows all the vehicles,not the one wich was requested by the plate.
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);
}
}
}
}