Hey Leute habe erros:
ZitatAlles anzeigenC:\RL.pwn(1421) : error 017: undefined symbol "textdrawwahr"
C:\RL.pwn(1421) : warning 215: expression has no effect
C:\RL.pwn(1421) : error 001: expected token: ";", but found "]"
C:\RL.pwn(1421) : error 029: invalid expression, assumed zero
C:\RL.pwn(1421) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Die error zeile:
textdrawwahr[i] = 1;
Die ganze datei:
public Flughoehe()
{
new Text:anzeige;
for (new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInPlane(i))
{
new Float:x,Float:y,Float:z;
GetPlayerPos(i,x,y,z);
new string[256];
format(string, sizeof(string),"Flughoehe: %.2f Meter", z );
TextDrawDestroy(anzeige);
anzeige = TextDrawCreate(50.0, 420.0, string);
TextDrawLetterSize(anzeige, 0.5, 2.5);
TextDrawShowForPlayer(i,anzeige);
textdrawwahr[i] = 1;
}
else if(textdrawwahr[i] == 1)
{
TextDrawDestroy(anzeige);
textdrawwahr[i] = 0;
}
}
}
}