/mycars help
#2

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
For future reference Dan. Use this instead. Your code is unreadable.

This is available for you too...

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;
}
Reply


Messages In This Thread
/mycars help - by viddo - 19.02.2012, 12:14
Re: /mycars help - by aRoach - 19.02.2012, 12:22
Re: /mycars help - by viddo - 19.02.2012, 12:49
Re: /mycars help - by aRoach - 19.02.2012, 12:53
Re: /mycars help - by viddo - 19.02.2012, 13:25
Re: /mycars help - by aRoach - 19.02.2012, 13:30
Re: /mycars help - by viddo - 19.02.2012, 13:41
Re: /mycars help - by aRoach - 19.02.2012, 13:46
Re: /mycars help - by viddo - 19.02.2012, 13:53
Re: /mycars help - by aRoach - 19.02.2012, 14:04

Forum Jump:


Users browsing this thread: 4 Guest(s)