Pawn Error [TextDraws]

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
  • C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1401) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1402) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1403) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1404) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1405) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1406) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1407) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1408) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1409) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1410) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1411) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1413) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1414) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1415) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1416) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1418) : error 017: undefined symbol "Money1"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1418) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1418) : error 029: invalid expression, assumed zero
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1418) : fatal error 107: too many error messages on one line


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



    19 Errors.




    //Geldtextdraw
    Money3[playerid] = CreatePlayerTextDraw(playerid,616.000000, 78.000000, "~n~~n~");
    PlayerTextDrawBackgroundColor(playerid,Money3[playerid], 255);
    PlayerTextDrawFont(playerid,Money3[playerid], 1);
    PlayerTextDrawLetterSize(playerid,Money3[playerid], 0.800000, 1.200000);
    PlayerTextDrawColor(playerid,Money3[playerid], -1);
    PlayerTextDrawSetOutline(playerid,Money3[playerid], 0);
    PlayerTextDrawSetProportional(playerid,Money3[playerid], 1);
    PlayerTextDrawSetShadow(playerid,Money3[playerid], 1);
    PlayerTextDrawUseBox(playerid,Money3[playerid], 1);
    PlayerTextDrawBoxColor(playerid,Money3[playerid], -1);
    PlayerTextDrawTextSize(playerid,Money3[playerid], 492.000000, 31.000000);


    new PlayerText:Money3[MAX_PLAYERS];



    Was ist daran falsch ich bitte um hilfe.


    mfg

  • Probier das mal aus

    Money3[playerid] = CreatePlayerTextDraw(i,616.000000, 78.000000, "~n~~n~");
    PlayerTextDrawBackgroundColor(i,Money3[playerid], 255);
    PlayerTextDrawFont(i,Money3[playerid], 1);
    PlayerTextDrawLetterSize(i,Money3[playerid], 0.800000, 1.200000);
    PlayerTextDrawColor(i,Money3[playerid], -1);
    PlayerTextDrawSetOutline(i,Money3[playerid], 0);
    PlayerTextDrawSetProportional(i,Money3[playerid], 1);
    PlayerTextDrawSetShadow(i,Money3[playerid], 1);
    PlayerTextDrawUseBox(i,Money3[playerid], 1);
    PlayerTextDrawBoxColor(i,Money3[playerid], -1);
    PlayerTextDrawTextSize(i,Money3[playerid], 492.000000, 31.000000);


    Mehr transparents zu der Community!
    Aber bitte künftig: Transparenz und nicht Transparents

  • C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1401) : error 017: undefined symbol "playerid"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1402) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1403) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1404) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1405) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1406) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1407) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1408) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1409) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1410) : error 017: undefined symbol "i"
    C:\Users\ArcticbytesRL\Desktop\RedMind-Redmix\gamemodes\redmix.pwn(1411) : error 017: undefined symbol "i"


    mfg

  • dann mach es so:



    Money3[i] = CreatePlayerTextDraw(playerid,616.000000, 78.000000, "~n~~n~");
    PlayerTextDrawBackgroundColor(playerid,Money3[i], 255);
    PlayerTextDrawFont(playerid,Money3[i], 1);
    PlayerTextDrawLetterSize(playerid,Money3[i], 0.800000, 1.200000);
    PlayerTextDrawColor(playerid,Money3[i], -1);
    PlayerTextDrawSetOutline(playerid,Money3[i], 0);
    PlayerTextDrawSetProportional(playerid,Money3[i], 1);
    PlayerTextDrawSetShadow(playerid,Money3[i], 1);
    PlayerTextDrawUseBox(playerid,Money3[i], 1);
    PlayerTextDrawBoxColor(playerid,Money3[i], -1);
    PlayerTextDrawTextSize(playerid,Money3[i], 492.000000, 31.000000);


    Mehr transparents zu der Community!
    Aber bitte künftig: Transparenz und nicht Transparents

  • OnPlayerConnect
    PlayerTextDrawShow(playerid,Money2[playerid]);
    PlayerTextDrawShow(playerid,Money[playerid]);
    PlayerTextDrawShow(playerid,Money3[playerid]);


    OnPlayerSpawn
    PlayerTextDrawShow(playerid,Money2[playerid]);
    PlayerTextDrawShow(playerid,Money[playerid]);
    PlayerTextDrawShow(playerid,Money3[playerid]);


    ocmd:geldbug(playerid,params[])
    {
    PlayerTextDrawShow(playerid,Money2[playerid]);
    PlayerTextDrawShow(playerid,Money[playerid]);
    PlayerTextDrawShow(playerid,Money3[playerid]);
    SCM(playerid,Rot,"Geld Bug wurde behoben!");
    }

  • - Erstelle das Textdraw bei OnPlayerConnect (CreatePlayerTextDraw + Einstellungen von deinem ersten Post).
    - Zeige dem Spieler das Textdraw bei OnPlayerSpawn.
    - Lösche das Textdraw bei OnPlayerDisconnect.


    Anstatt "Money1", das du einmal geschrieben hast schreibe "Money".