Also habe nun oben im Script:
//Textdraws:Tacho
new Text:Tank[MAX_PLAYERS];
new Text:Leer[MAX_PLAYERS];
new Text:Fahrzeug[MAX_PLAYERS];
new Text:Zustand[MAX_PLAYERS];
new Text:Tankmenge[MAX_PLAYERS];
new Text:Geschwind[MAX_PLAYERS];
new Text:Brand[MAX_PLAYERS];
new Text:SMotor[MAX_PLAYERS];
new Text:SLicht[MAX_PLAYERS];
new Text:SSchloss[MAX_PLAYERS];
new Text:Alarm[MAX_PLAYERS];
new Text:Kmh[MAX_PLAYERS];
public OnGameModeInit()
{
Zustand = TextDrawCreate(499.000000, 352.000000, "~b~Tankart:");
TextDrawBackgroundColor(Zustand, 255);
TextDrawFont(Zustand, 1);
TextDrawLetterSize(Zustand, 0.250000, 1.500000);
TextDrawColor(Zustand, 65535);
TextDrawSetOutline(Zustand, 0);
TextDrawSetProportional(Zustand, 1);
TextDrawSetShadow(Zustand, 1);
Geschwind = TextDrawCreate(499.000000, 378.000000, "~b~Geschwindigkeit:");
TextDrawBackgroundColor(Geschwind, 255);
TextDrawFont(Geschwind, 1);
TextDrawLetterSize(Geschwind, 0.250000, 1.500000);
TextDrawColor(Geschwind, 65535);
TextDrawSetOutline(Geschwind, 0);
TextDrawSetProportional(Geschwind, 1);
TextDrawSetShadow(Geschwind, 1);
return 1;
//Dann diese bei GM Init (aus Kopierschutz nicht alle :D)
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
TextDrawShowForPlayer(playerid, Tank[playerid]);
TextDrawShowForPlayer(playerid, Leer[playerid]);
TextDrawShowForPlayer(playerid, Fahrzeug[playerid]);
TextDrawShowForPlayer(playerid, Zustand[playerid]);
TextDrawShowForPlayer(playerid, Tankmenge[playerid]);
TextDrawShowForPlayer(playerid, Geschwind[playerid]);
TextDrawShowForPlayer(playerid, Brand[playerid]);
TextDrawShowForPlayer(playerid, SMotor[playerid]);
TextDrawShowForPlayer(playerid, SLicht[playerid]);
TextDrawShowForPlayer(playerid, SSchloss[playerid]);
TextDrawShowForPlayer(playerid, Alarm[playerid]);
TextDrawShowForPlayer(playerid, Kmh[playerid]);
}
else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
{
TextDrawHideForPlayer(playerid, Tank[playerid]);
TextDrawHideForPlayer(playerid, Leer[playerid]);
TextDrawHideForPlayer(playerid, Fahrzeug[playerid]);
TextDrawHideForPlayer(playerid, Zustand[playerid]);
TextDrawHideForPlayer(playerid, Tankmenge[playerid]);
TextDrawHideForPlayer(playerid, Geschwind[playerid]);
TextDrawHideForPlayer(playerid, Brand[playerid]);
TextDrawHideForPlayer(playerid, SMotor[playerid]);
TextDrawHideForPlayer(playerid, SLicht[playerid]);
TextDrawHideForPlayer(playerid, SSchloss[playerid]);
TextDrawHideForPlayer(playerid, Alarm[playerid]);
TextDrawHideForPlayer(playerid, Kmh[playerid]);
}
return 1;
}
Habe jetzt über 26 Errors (Sind fast alle die Selben denke Ich)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(249) : error 033: array must be indexed (variable "Tank")
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(250) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(251) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(252) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(253) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(254) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(255) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(256) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(258) : error 033: array must be indexed (variable "Leer")
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(259) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(260) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(261) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(262) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(263) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(264) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(265) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(266) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(267) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(268) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(270) : error 033: array must be indexed (variable "Fahrzeug")
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(271) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(272) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(273) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(274) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(275) : error 035: argument type mismatch (argument 1)
C:\Users\Paddy\Desktop\PlanetReallife\gamemodes\PlanetReallife.pwn(276) : error 035: argument type mismatch (argument 1)
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
//edit:
Davor war ja mein problem, das beim Einsteigen im Auto einteil des LoginMenüs mit angezeigt wurde.Hoffe mal dieser Fehler geht weg sobald das hier Richtig ist