Hallo Leute.
Ich scripte grade mein Tacho.
Habe aber sehr viele errors könnt ihr mir bitte helfen die die erros und die zeilen.
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(34) : error 035: argument type mismatch (argument 3)
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(35) : warning 202: number of arguments does not match definition
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(35) : warning 202: number of arguments does not match definition
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(110) : warning 225: unreachable code
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(447) : error 055: start of function body without function header
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(448) : error 010: invalid function or declaration
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(450) : error 010: invalid function or declaration
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(453) : error 017: undefined symbol "i"
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(454) : error 010: invalid function or declaration
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(457) : error 021: symbol already defined: "format"
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(459) : error 010: invalid function or declaration
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(459 -- 462) : error 010: invalid function or declaration
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(459 -- 467) : error 010: invalid function or declaration
C:\Users\Hakan\Desktop\PlayHard-Reallife-Linux\gamemodes\[MeR]Selfmade.pwn(459 -- 467) : fatal error 107: too many error messages on one line
Hier die zeilen:
{
Tacho[x] = TextDrawCreate (357,0000,340,000,"--:--");// Zeile 34
TextDrawLetterSize(Tacho[x],0,4,1,1);// Zeile 35
}
}
return 1;// Zeile 110
}
{//zeile 447
for(new i = ;1<MAX_PLAYERS;i++) Zeile 448
{
if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && && !IsPlayerNPC(i)) // Zeile 450
{
new Float:Streckem,Float,Geschwindigkeit;
GetVehilcePos(GetPlayerVehicle[i],X1[i],Y1[i],Z1[i]);//zeile 453
Strecke = floatsqroot(floatpower(floatabs(floatsub(X1[i],X2[i])),2);+floatpower(floatabs,(floatsup(Y1[i],Y2[i])),2)+floatpower(floatabs(floatsup(Z1[i],Z2[i])),2));
Geschwindigkeit = (Strecke / (TACHOTIMER/ 1000)) * 3,6;
new String[50];
format(String,50,Mein Tacho.\nGeschwindigkeit: %d km/h,floatround(Geschwindigkeit));//zeile 457
TextDrawSetString(Tacho[i],String);
GetVehiclePos(GetPlayerVehilceID(i),X2[i],Y2[i],Z2[i]);//zeile 459
TextDrawShowForPlayer(i,Tacgo[i]);
}
else
{
TextDrawHideForPlayer(i,Tacho[i]
}
}
return 1;
}
bitte hilft mir