22.07.2009, 02:41
NOT SOLVED STILL. When i enter vehicles it ALWAYS says [ ! ] ID : 0 ' Turismo ' Bought by: Coole210 even if i enter second car !!
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
if(Cars[GetPlayerVehicleID(playerid)][cOwner] == 1)
{
format(string,sizeof(string),"[ ! ] ID : %d ' %s ' Bought by : %s",Cars[GetPlayerVehicleID(playerid)][cCarID],Cars[GetPlayerVehicleID(playerid)][cDescription],Cars[GetPlayerVehicleID(playerid)][cOwner]);
SendClientMessage(playerid,COLOR_GREY,string);
}
if(Cars[GetPlayerVehicleID(playerid)][cOwned] == 0)
{
format(string,sizeof(string),"[ ! ] ID : %d ' %s ' Price : %d RCASH",Cars[GetPlayerVehicleID(playerid)][cCarID],Cars[GetPlayerVehicleID(playerid)][cDescription],Cars[GetPlayerVehicleID(playerid)][cPrice]);
SendClientMessage(playerid,COLOR_GREY,string);
}
if(Cars[GetPlayerVehicleID(playerid)][cOwned] == 1)
{
format(string,sizeof(string),"[ ! ] ID : %d ' %s ' Bought by : %s",Cars[GetPlayerVehicleID(playerid)][cCarID],Cars[GetPlayerVehicleID(playerid)][cDescription],Cars[GetPlayerVehicleID(playerid)][cOwner]);
SendClientMessage(playerid,COLOR_GREY,string);
}
return 1;
}