19.02.2012, 12:22
Quote:
For future reference Dan. Use this instead. Your code is unreadable.
|
Try this:
pawn Код:
if( !strcmp( cmdtext, "/mycars", true ) )
{
if (PlayerInfo[targetid][pPcarkey] != 9999)
{
new vehiclename[24];
GetVehicleName(carkey, vehiclename, sizeof(vehiclename));
format(coordsstring, sizeof(coordsstring), "| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |",carkey,vehiclename, CarInfo[carkey][cModel], GetVehiclePrice(carkey), CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock], CarInfo[carkey][cCode]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
}
if (PlayerInfo[targetid][pPcarkey2] != 9999)
{
new vehiclename[24];
GetVehicleName(carkey2, vehiclename, sizeof(vehiclename));
format(coordsstring, sizeof(coordsstring), "| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |",carkey2,vehiclename, CarInfo[carkey2][cModel], GetVehiclePrice(carkey2), CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock], CarInfo[carkey2][cCode]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
}
return 1;
}