Beiträge von Mark

    11 errors




    5 errors


    #define COLOR_REDA 0xFF0000FF//ServerOwner
    #define COLOR_LIGHTBLUE 0x33CCFFAA//Administrator
    #define COLOR_LIGHTGREEN 0x9ACD32AA//moderator
    #define COLOR_ORANGERED 0xFF4500AA//supporter


    forward OnPlayerLogin(playerid);
    public OnPlayerLogin()
    {
    new sup[MAX_PLAYER_NAME];
    new Owner[MAX_PLAYER_NAME];
    new mod[MAX_PLAYER_NAME];
    new adm[MAX_PLAYER_NAME];


    if(Player[playerid][admin] == 2000) //adminlvl 4 =ServerOwner könnt auch 1337 Admin lvl
    {
    Owner = "ServerOwner";
    ServerOwner[playerid] = Create3DTextLabel(Owner,COLOR_REDA,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(ServerOwner[playerid], playerid, 0.0, 0.0, 0.45);
    }
    if(Player[playerid][admin] == 1)//adminlvl 1 =moderator :)
    {
    mod = "Moderator]";
    Moderator[playerid] = Create3DTextLabel(mod,COLOR_LIGHTGREEN,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(Moderator[playerid], playerid, 0.0, 0.0, 0.45);
    }
    if(Player[playerid][admin] == 2)//adminlvl 2 =supporter
    {
    adm = "Supporter";
    Administrator[playerid] = Create3DTextLabel(adm,COLOR_LIGHTBLUE,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(Administrator[playerid], playerid, 0.0, 0.0, 0.45);
    }
    if(Player[playerid][admin] == 3)//adminlvl 3=administrator
    {
    sup = "Administrator";
    SuperAdmin[playerid] = Create3DTextLabel(sup,COLOR_ORANGERED,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(SuperAdmin[playerid], playerid, 0.0, 0.0, 0.45);
    }
    public OnPlayerDisconnect(playerid)
    Delete3DTextLabel(ServerOwner[playerid]);//Löscht den 3D Textlabel
    Delete3DTextLabel(Moderator[playerid]);//same
    Delete3DTextLabel(Administrator[playerid]);//same
    Delete3DTextLabel(Supporter[playerid])//same


    ich check das nicht wie ich es ohne errors schaffen kann