29.11.2007, 17:35
just make a variable
you have this now:
and have a look at this:
Look at the format line. --> OldvehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
i just renamed it to old. You must now make a whole new list with the normal cars in it.
Good luck!
grtz Anti
you have this now:
pawn Code:
if (newstate == 2 || newstate == 3)
{
format(str, sizeof(str), "~y~Vehicle ID: %d ~n~~r~Model ID: %d ~n~~g~%s", GetPlayerVehicleID(playerid), GetVehicleModel(GetPlayerVehicleID(playerid)), vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
GameTextForPlayer(playerid, str, 4000, 1);
}
pawn Code:
if (newstate == 2 || newstate == 3)
{
if(oldnew == 0)
{
format(str, sizeof(str), "~y~Vehicle ID: %d ~n~~r~Model ID: %d ~n~~g~%s", GetPlayerVehicleID(playerid), GetVehicleModel(GetPlayerVehicleID(playerid)), vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
GameTextForPlayer(playerid, str, 4000, 1);
}
else
{
format(str, sizeof(str), "~y~Vehicle ID: %d ~n~~r~Model ID: %d ~n~~g~%s", GetPlayerVehicleID(playerid), GetVehicleModel(GetPlayerVehicleID(playerid)), OldvehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
GameTextForPlayer(playerid, str, 4000, 1);
}
}
i just renamed it to old. You must now make a whole new list with the normal cars in it.
Good luck!
grtz Anti