24.01.2012, 23:07
then look at whole code what do i do with vehicle 1and 2
see if (PlayerInfo[targetid][pPcarkey] != 9999)
{
new vehiclename[24];
GetVehicleName(carkey, vehiclename, sizeof(vehiclename));
format( statdialogstring, sizeof( statdialogstring ),"| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |\n",carkey,vehiclename, CarInfo[carkey][cModel], GetVehiclePrice(carkey), CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock], CarInfo[carkey][cCode]);
}
if (PlayerInfo[targetid][pPcarkey2] != 9999)
{
new vehiclename[24];
GetVehicleName(carkey2, vehiclename, sizeof(vehiclename));
format( statdialogstring, sizeof( statdialogstring ),"| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |\n",carkey2,vehiclename, CarInfo[carkey2][cModel], GetVehiclePrice(carkey2), CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock], CarInfo[carkey2][cCode]);
}
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"S tats",statdialogstring,"Inchide","");
}
}
see if (PlayerInfo[targetid][pPcarkey] != 9999)
{
new vehiclename[24];
GetVehicleName(carkey, vehiclename, sizeof(vehiclename));
format( statdialogstring, sizeof( statdialogstring ),"| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |\n",carkey,vehiclename, CarInfo[carkey][cModel], GetVehiclePrice(carkey), CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock], CarInfo[carkey][cCode]);
}
if (PlayerInfo[targetid][pPcarkey2] != 9999)
{
new vehiclename[24];
GetVehicleName(carkey2, vehiclename, sizeof(vehiclename));
format( statdialogstring, sizeof( statdialogstring ),"| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |\n",carkey2,vehiclename, CarInfo[carkey2][cModel], GetVehiclePrice(carkey2), CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock], CarInfo[carkey2][cCode]);
}
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"S tats",statdialogstring,"Inchide","");
}
}