Nochmal Textdraw Fehler

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hi habe nochmal paar Text draw fehlers.


    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(77) : error 017: undefined symbol "Textdraw0"
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(78) : error 017: undefined symbol "Textdraw1"
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(79) : error 017: undefined symbol "Textdraw0"
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(79) : warning 215: expression has no effect
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(79) : error 001: expected token: ";", but found "]"
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(79) : error 029: invalid expression, assumed zero
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(79) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Errors.


    Code:


    public OnPlayerConnect(playerid)
    {
    TextDrawShowForPlayer(playerid,Textdraw0);
    TextDrawShowForPlayer(playerid,Textdraw1);
    PlayerTextDrawShow(playerid,Textdraw0[playerid]);
    //Player Textdraws:


    new PlayerText:Textdraw0[MAX_PLAYERS];



    Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 245.777847, 198.115524, "Login oder Register");
    PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);
    return 1;
    }

  • Ich habe noch die Fehler:
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(79) : error 035: argument type mismatch (argument 2)
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(80) : error 017: undefined symbol "Textdraw1"
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(81) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(84) : error 021: symbol already defined: "Textdraw0"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.

  • Hab trotzdem errors:


    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(33) : warning 219: local variable "Textdraw0" shadows a variable at a preceding level
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(76) : error 035: argument type mismatch (argument 2)
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(77) : error 017: undefined symbol "Textdraw1"
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(78) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(80) : warning 219: local variable "Textdraw0" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.



    Und der aktuelle Code:


    public OnPlayerConnect(playerid)
    {
    TextDrawShowForPlayer(playerid,Textdraw0);
    TextDrawShowForPlayer(playerid,Textdraw1);
    PlayerTextDrawShow(playerid,Textdraw0[playerid]);
    //Player Textdraws:
    new PlayerText:Textdraw0[MAX_PLAYERS];



    Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 245.777847, 198.115524, "Login oder Register");
    PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);
    return 1;
    }

  • new PlayerText:Textdraw0[MAX_PLAYERS];
    Mach das im Public OnPlayerConnect weg....


    Zitat

    error 017: undefined symbol "Textdraw1"


    Wenns ein PlayerTextdraw ist machst du das selbe wie beim Textdraw0. Wenn es ein normaler Textdraw ist machst du es so wie bei deinem vorherigem Thema.

  • Peinlich aber
    iwie check ich es nicht:


    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(33) : warning 219: local variable "Textdraw0" shadows a variable at a preceding level
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(76) : error 035: argument type mismatch (argument 2)
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(77) : error 017: undefined symbol "Textdraw1"
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(78) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(82) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(83) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(84) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(85) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(86) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(87) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(88) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(89) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(90) : warning 213: tag mismatch
    C:\Users\Home\Desktop\[SAR] San Andreas Roleplay\gamemodes\SAR.pwn(91) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    Und der code wieder:
    public OnPlayerConnect(playerid)
    {
    TextDrawShowForPlayer(playerid,Textdraw0);
    TextDrawShowForPlayer(playerid,Textdraw1);
    PlayerTextDrawShow(playerid,Textdraw0[playerid]);
    //Player Textdraws:



    Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 245.777847, 198.115524, "Login oder Register");
    PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);
    return 1;
    }