Yoa hi,
ich habe mich ma an nem Tacho versucht.
Ich kriege aber 9 errors:
[hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(3758) : error 029: invalid expression, assumed zero
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(3758) : error 035: argument type mismatch (argument 2)
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14974) : error 029: invalid expression, assumed zero
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14974) : error 035: argument type mismatch (argument 2)
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14984) : error 029: invalid expression, assumed zero
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 029: invalid expression, assumed zero
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : warning 215: expression has no effect
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : warning 215: expression has no effect
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 001: expected token: ";", but found ")"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : error 029: invalid expression, assumed zero
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(14985) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.[/hide]
Hier das ganze Tacho:
TextDrawShowForPlayer(playerid,Tacho);
for(new i = 0; i < 700; i++)
{
if(Dtc_Carlock[i])
{
SetVehicleParamsForPlayer(playerid,playerid,0,1); //3786 Problemzeile
}
}
public VehStateCheck()
{
for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
{
if(IsPlayerConnected(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
{
if(M_Bot[playerid][PAFK] == 0)
TextDrawHideForPlayer(playerid, Tacho); //14974 Problemzeile
{
new Float:health,vehicleid = GetPlayerVehicleID(playerid),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[playerid][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[playerid][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[playerid][PCarZ])),2));
value = floatround(distance * 11000);
GetVehicleHealth(vehicleid,health);
if (health >= 900 && health <= 1000)
{
format(string, sizeof(string), "~w~Geschwindigkeit: %d~w~ KM/H~n~Tankinhalt: ~w~%d ~b~/~w~ %d~w~~n~Zustand:~g~ ========~n~~w~Fahrzeug: ~w~%s",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
Tacho = TextDrawCreate(490.000000,401.000000,string);
TextDrawLetterSize(Tacho,0.299999,0.799999); //14985 Problemzeile
TextDrawSetOutline(Tacho,1);
TextDrawFont(Tacho,1);
TextDrawSetProportional(Tacho,1);
TextDrawAlignment(Tacho,0);
TextDrawBackgroundColor(Tacho,0x000000ff);
TextDrawColor(Tacho,0xffffffff);
TextDrawSetShadow(Tacho,1);
TextDrawShowForPlayer(playerid,Tacho);
}
}
}
}
return 1;
}
Hoffe mir kann da jemand helfen.
Ich weis einfach nicht mehr weiter
mfg lolli
//edit Überschrift