Der Spieler ist nicht Online

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
  • Guten tag,
    ich habe ein Problem wenn ich /help mache kommt : Server: Unknown Command.
    Und wenn ich z.b ein Spieler makeadmin mache oder porten will kommt Der Spieler ist nicht Online .


    Also Wenn ich befehle gebe was mit ID zutun hat kommt immer Fehler .



    Wenn einer mir helfen würde wäre ich dankbar.



    Lg

  • dein help command und evtl den zum admin geben

  • was ist da zu ungenau?


    du sollst deinen Help command posten

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • command(setadminlevel, playerid, params[])
    {
    new id, level, string[128];
    if(!IsPlayerAdmin(playerid))
    return false;
    if(sscanf(params, "ud", id, level))
    return SendClientMessage(playerid, COLOR_WHITE, "Befehl: /(s)et(a)dmin(l)evel [Name/ID] [AdminLevel]");

    if(GetPVarInt(playerid, "Authentication") != 1)
    return SendClientMessage(playerid, COLOR_BRIGHTRED, "Du bist nicht eingeloggt!");
    if(GetPVarInt(id, "Authentication") != 1)
    return SendClientMessage(playerid, COLOR_BRIGHTRED, "Der Spieler ist nicht eingeloggt!");


    if(pStats[id][pAdminLevel] == 0)
    {
    switch(level)
    {
    case 1: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL1);
    case 2: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL2);
    case 3: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL3);
    case 4: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL4);
    case 5: format(string, sizeof(string), "Congratulations, %s! You have been hired as the \"%s\" on our server staff team!", GetName(id), ADMINLVL5);
    case 6: format(string, sizeof(string), "Congratulations, %s! You have been hired as the \"%s\" on our server staff team!", GetName(id), ADMINLVL6);
    }
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "You have hired %s(%d) onto the server staff team.", GetName(id), id);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level > pStats[id][pAdminLevel])
    {
    switch(level)
    {
    case 2: format(string, sizeof(string), "Congratulations, %s! You have been promoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL2);
    case 3: format(string, sizeof(string), "Congratulations, %s! You have been promoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL3);
    case 4: format(string, sizeof(string), "Congratulations, %s! You have been promoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL4);
    case 5: format(string, sizeof(string), "Congratulations, %s! You have been promoted as a \"%s\" on our server staff team!", GetName(id), ADMINLVL5);
    case 6: format(string, sizeof(string), "Congratulations, %s! You have been promoted as a \"%s\" on our server staff team!", GetName(id), ADMINLVL6);
    }
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "You have promoted %s(%d) to an administrator level %d.", GetName(id), id, level);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level < pStats[id][pAdminLevel])
    {
    switch(level)
    {
    case 1: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL1);
    case 2: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL2);
    case 3: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL3);
    case 4: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL4);
    case 5: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL5);
    }
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "You have demoted %s(%d) to an administrator level %d.", GetName(id), id, level);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level == 0)
    {
    SendClientMessage(id, COLOR_LIGHTBLUE, "Yikes! You have been fired from our server staff team and no longer hold any server \"power\".");
    format(string, sizeof(string), "You have fired %s(%d), they are no longer apart of the server staff team.", GetName(id), id);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level == pStats[id][pAdminLevel]) SendClientMessage(playerid, COLOR_LIGHTRED, "That player already has that admin level!");
    else if(id == playerid && pStats[playerid][pAdminLevel] != 0 && level > pStats[playerid][pAdminLevel]) SendClientMessage(playerid, COLOR_LIGHTRED, "You cannot set your own admin level!");


    pStats[id][pAdminLevel] = level;
    SaveStatus(id);
    return 1;
    }


    z.b hier das ich kann keinen Admin machen , weil der sagt Der User ist nicht Online -.-

  • Das ist das Dark Trigardon Reloaded Script und da gibt es keinen /help Befehl...


    Und das mit Spieler ist nicht online, da musst du bestimmt sscanf updaten. Also native sscanf und unformat ausm Script entfernen, sscanf2 runterladen, im Script oben #include <sscanf2> einfügen und neu compilen.


    Wenn du keine Ahnung hast lass es sein.

  • Viel Spaß den in diesen 2 Monaten wirst du nicht viel lernen...

  • Hast du die sscanf funktion aus dem Script entfernt?


    Also das
    native sscanf(const data[], const format[], {Float,_}:...);
    native unformat(const data[], const format[], {Float,_}:...) = sscanf;

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