Guten Morgen,
Folgenes ich hab mir ein in mein Script ein Tacho rein baun lassen so Nun Geht alles Autoname,AztoZustand,Tank, und bei km/h geht nix an was Könnte es Liegen....
public UpdateSpeed()
{
new Float:x,Float:y,Float:z;
new Float:distance,value,string[256];
new Float:health, i;
for(i=0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i))
{
TextDrawDestroy(Speedo[i]);
}
}
for(i=0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(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 * 3900);
//value = floatround(distance * 5000);
if(UpdateSeconds > 1)
{
value = floatround(value / UpdateSeconds);
}
format(string,sizeof(string),"~w~Name: ~w~%s ~n~~w~KM/H: ~w~%.1f ~n~~w~Tank: ~w~%d ~n~~w~state: ~w~%.2f ~n~~w~-------------------------- ~n~~w~www.rg-clan.de",CarName[GetVehicleModel(GetPlayerVehicleID(i))-400],floatround(value/1000),Gas[GetPlayerVehicleID(i)],health);
Speedo[i] = TextDrawCreate(499.000000,129.000000, string);
TextDrawLetterSize(Speedo[i],0.2999,1.1000);
TextDrawSetOutline(Speedo[i], 1);
TextDrawFont(Speedo[i], 2);
TextDrawSetProportional(Speedo[i], 1); //2
TextDrawAlignment(Speedo[i], 0); //2
TextDrawShowForPlayer (i, Speedo[i]);
TextDrawShowForPlayer(i, Textdraw1);
}
SavePlayerPos[i][LastX] = x;
SavePlayerPos[i][LastY] = y;
SavePlayerPos[i][LastZ] = z;
}
}
}
ich bitte um Schnell Hilfe
mfg hunter