Leute auf Map sehen

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
  • konnte auf meinen alten Thread net mehr antworten. wäre irgendwie net mehr berechtigt. egal ich poste dann hier


    kam ein Error beim Compilen:
    fatal error 100: cannot read from file: "utils"


    hier der Code den ich hinzugefügt habe:
    public SetPlayerToTeamColor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)//Zivi einfach so lassen
    {
    SetPlayerColor(playerid,#define COLOR 0xFFFFFFFF);
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Frak nr 1
    {
    SetPlayerColor(playerid,#define COLOR 0x0066FFFF);
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//Frak nr 2
    {
    SetPlayerColor(playerid,#define COLOR 0x0033CCFF);
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Frak nr 3
    {
    SetPlayerColor(playerid,#define COLOR 0x009900FF);
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Frak nr 4
    {
    SetPlayerColor(playerid,#define COLOR 0xFF0000FF);
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Frak nr 5
    {
    SetPlayerColor(playerid,#define COLOR 0x333333CA);
    }
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Frak nr 6
    {
    SetPlayerColor(playerid,#define COLOR 0x999999CA);
    }
    if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Frak nr 7
    {
    SetPlayerColor(playerid,#define COLOR 0x996600CA);
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)//Frak nr 8
    {
    SetPlayerColor(playerid,#define COLOR 0x33FFFFFF);
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)//Frak nr 9
    {
    SetPlayerColor(playerid,#define COLOR 0x99CC99FF);
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)//Frak nr 10
    {
    SetPlayerColor(playerid,#define COLOR 0xFFFF00FF);
    }
    if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)//Frak nr 11
    {
    SetPlayerColor(playerid,#define COLOR 0x996666FF);
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Frak nr 12
    {
    SetPlayerColor(playerid,#define COLOR 0x66FF33FF);
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Frak nr 13
    {
    SetPlayerColor(playerid,#define COLOR 0x993399FF);
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 11)//Frak nr 14
    {
    SetPlayerColor(playerid,#define COLOR 0x666633FF);
    }
    }
    }

  • ne geht immer noch net
    wiso muss ich die Spielerfarben in die Include einsetzen. Die kommen doch als Filterscript oder ins Gamemode rein?

  • Das hier ist falsch



    SetPlayerColor(playerid,#define COLOR 0x666633FF);


    es geht so



    SetPlayerColor(playerid,0x666633FF);
    oder so


    #define COLOR_Beispiel 0x666633FF


    SetPlayerColor(playerid,COLOR_beispiel);

    RFT

  • so habe ich es jetzt gemacht:
    public SetPlayerToTeamColor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)//Zivi einfach so lassen
    {
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Frak nr 1
    {
    SetPlayerColor(playerid,0x0066FFFF);
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//Frak nr 2
    {
    SetPlayerColor(playerid,0x0033CCFF);
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Frak nr 3
    {
    SetPlayerColor(playerid,0x009900FF);
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Frak nr 4
    {
    SetPlayerColor(playerid,0xFF0000FF);
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Frak nr 5
    {
    SetPlayerColor(playerid,0x333333CA);
    }
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Frak nr 6
    {
    SetPlayerColor(playerid,0x999999CA);
    }
    if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Frak nr 7
    {
    SetPlayerColor(playerid,0x996600CA);
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)//Frak nr 8
    {
    SetPlayerColor(playerid,0x33FFFFFF);
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)//Frak nr 9
    {
    SetPlayerColor(playerid,0x99CC99FF);
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)//Frak nr 10
    {
    SetPlayerColor(playerid,0xFFFF00FF);
    }
    if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)//Frak nr 11
    {
    SetPlayerColor(playerid,0x996666FF);
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Frak nr 12
    {
    SetPlayerColor(playerid,0x66FF33FF);
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Frak nr 13
    {
    SetPlayerColor(playerid,0x993399FF);
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 11)//Frak nr 14
    {
    SetPlayerColor(playerid,0x666633FF);
    }
    }
    }


    Dann kommt beim Compilen aber immer diese Fehlermeldung:


    fatal error 100: cannot read from file: "utils"

  • ja dann habe ich restart gemacht, ging aber net mit den farben

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