Errors, bitte helfen

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
  • Hallo,


    Ich wollte versuchen einen 3D Text über Spielern zu machen, aber ich bekomme diese Errors:



    (5490) : error 010: invalid function or declaration
    (5495) : error 010: invalid function or declaration


    Zeilen:



    new Text3D:Supporter[MAX_PLAYERS];
    new Text3D:Server_Owner[MAX_PLAYERS];




    Delete3DTextLabel(Supporter[playerid]);
    Delete3DTextLabel(Server_Owner[playerid]);


    (5490) = Zeile 1
    (5495) = Zeile 6
    if (PlayerInfo[playerid][pSupporter] >= 1)
    {
    Supporter[playerid] = Create3DTextLabel("<Supporter>",0x0000FFFF,0.0,0.0,0.0,40.0,0);
    Attach3DTextLabelToPlayer(Supporter[playerid], playerid, 0.0, 0.0, 0.7);
    }
    if (PlayerInfo[playerid][pAdmin] == 1339)
    {
    Server_Owner[playerid] = Create3DTextLabel("<Server Besitzer>",0xDF0000FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToPlayer(Server_Owner[playerid], playerid, 0.0, 0.0, 0.7);
    }


    MfG. Cody09

  • (5490) = Zeile 1
    (5495) = Zeile 6
    if (PlayerInfo[playerid][pSupporter] > = 1)
    {
    Supporter[playerid] = Create3DTextLabel("",0x0000FFFF,0.0,0.0,0.0,40.0,0);
    Attach3DTextLabelToPlayer(Supporter[playerid], playerid, 0.0, 0.0, 0.7);
    }
    if (PlayerInfo[playerid][pAdmin] = 1339)
    {
    Server_Owner[playerid] = Create3DTextLabel("",0xDF0000FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToPlayer(Server_Owner[playerid], playerid, 0.0, 0.0, 0.7);
    }


    MfG. Cody09[/quote]


    Probier mal so ^^

    MAPPER Freak, ist nun bis zum 2.1 in Italien und wünscht dir einen guten Rutsch!
    Ihr sucht einen Mapper? > PN <

  • Zitat

    Probier mal so ^^


    Bitte poste doch keinen Schwachsinn.


    PlayerInfo[playerid][pSupporter] und PlayerInfo[playerid][pAdmin] sind dem Compiler nicht bekannt - kannst sein dass du Groß- und kleinschreibung missachtet hast?

    GameMode / Filterscript / Plugin Development via
    - PAWN / C/C++
    - Database (mySQL) & Filebased - Systems


    Webdevelopment / Interfaces Webapplications - SA:MP Server via
    - HTML & CSS
    - PHP, JavaScript, Ajax

  • Wenn

    if (PlayerInfo[playerid][pSupporter] >= 1)
    +
    if (PlayerInfo[playerid][pAdmin] == 1339)


    die fehlerhaften Zeilen sind und als Fehler "invalid function or declaration" auftritt - bedeutet das idR, dass eben diese Bezeichner dem Compiler nicht bekannt sind. Von daher meine Vermutung.

    GameMode / Filterscript / Plugin Development via
    - PAWN / C/C++
    - Database (mySQL) & Filebased - Systems


    Webdevelopment / Interfaces Webapplications - SA:MP Server via
    - HTML & CSS
    - PHP, JavaScript, Ajax

    Einmal editiert, zuletzt von ray187 ()

  • Poste mal den gesamten Codeausschnitt um Zeile 5490 - 5495 herum und schau nochmal nach ob Du die richtigen Zeilen angegeben hast. Das sieht mir nicht wirklich stimmig aus.

    GameMode / Filterscript / Plugin Development via
    - PAWN / C/C++
    - Database (mySQL) & Filebased - Systems


    Webdevelopment / Interfaces Webapplications - SA:MP Server via
    - HTML & CSS
    - PHP, JavaScript, Ajax

  • if(PlayerInfo[playerid][pTot] == 1 && FirstSpawn[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_YELLOW, "|________________________ Am Krankenhaus ________________________|");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Durch deine schweren Verletzungnen liegst du im Koma!");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du bist für 1-2 Minuten im Krankenhaus! Du wirst grade Behandelt.");
    ResetPlayerWeapons(playerid);
    return 1;
    }
    return 1;
    }



    if (PlayerInfo[playerid][pSupporter] >= 1)
    {
    Supporter[playerid] = Create3DTextLabel("<Supporter>",0x0000FFFF,0.0,0.0,0.0,40.0,0);
    Attach3DTextLabelToPlayer(Supporter[playerid], playerid, 0.0, 0.0, 0.7);
    }
    if (PlayerInfo[playerid][pAdmin] == 1339)
    {
    Server_Owner[playerid] = Create3DTextLabel("<Server Besitzer>",0xDF0000FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToPlayer(Server_Owner[playerid], playerid, 0.0, 0.0, 0.7);
    }


  • Aufgrund der fehlenden Indentication kann ich nur Vermutungen äußern... was schließt die unterste Klammer nach return 1; in diesem Ausschnitt?



    if(PlayerInfo[playerid][pTot] == 1 && FirstSpawn[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_YELLOW, "|________________________ Am Krankenhaus ________________________|");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Durch deine schweren Verletzungnen liegst du im Koma!");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du bist für 1-2 Minuten im Krankenhaus! Du wirst grade Behandelt.");
    ResetPlayerWeapons(playerid);
    return 1;
    }
    return 1;
    }

    GameMode / Filterscript / Plugin Development via
    - PAWN / C/C++
    - Database (mySQL) & Filebased - Systems


    Webdevelopment / Interfaces Webapplications - SA:MP Server via
    - HTML & CSS
    - PHP, JavaScript, Ajax

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen