Gas[vehicle] bringt er mir folgende fehlermeldung
C:\Users\Administrator\Desktop\GTA_SA_MP\filterscripts\speedo.pwn(120) : error 017: undefined symbol "Gas"
C:\Users\Administrator\Desktop\GTA_SA_MP\filterscripts\speedo.pwn(120) : error 017: undefined symbol "vehicle"
C:\Users\Administrator\Desktop\GTA_SA_MP\filterscripts\speedo.pwn(120) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\GTA_SA_MP\filterscripts\speedo.pwn(120) : fatal error 107: too many error messages on one line
das is die stelle wo es gebraucht wird
for(new i=0; i<SLOTS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
GetPlayerPos(i, x, y, z);
GetVehicleHealth(GetPlayerVehicleID(i), health);
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
value = floatround(distance * 5000);
if(UpdateSeconds > 1)
{
value = floatround(value / UpdateSeconds);
}
format(string,sizeof(string),"~g~Vehicle : ~w~%s ~n~ ~b~KM/H : ~w~%d ~n~~r~Vehicle Health:~w~ %.2f ~n~ ~p~ Tank:~w~ %",CarName[GetVehicleModel(GetPlayerVehicleID(i))-400],floatround(value/1000),health,Gas[vehicle]);
Speedo[i] = TextDrawCreate(320.00, 380.00, string);
TextDrawSetOutline(Speedo[i], 0);
TextDrawFont(Speedo[i], 3);
TextDrawSetProportional(Speedo[i], 2);
TextDrawAlignment(Speedo[i], 2);
TextDrawShowForPlayer (i, Speedo[i]);
}
was soll ich nu machen