if(newstate == PLAYER_STATE_DRIVER)
{
new newcar = GetPlayerVehicleID(playerid);
if (newcar == PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId])
{
if(PlayerCar[playerid][Dtc_PlayerKey[playerid]][Benzin] != 0)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new VID;
//new benzin;
VID = GetPlayerVehicleID(i);
//benzin = Gas[VID] - PlayerCar[playerid][Dtc_PlayerKey[playerid]][Benzin];
PlayerCar[playerid][Dtc_PlayerKey[playerid]][Benzin] = GetGasMax(GetVehicleModel(VID))-Gas[VID];
}
}
}
else
{
}
}
}
Iwe sette er ingame etwas aber nicht den Wert der in der Datei playerCar ist?