Hilfe Bitte

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 Liebe Breadfish Com,


    Ich hab ein Script fail denke ich


    Meine user und meine admin und ich Können nicht in den OOC Schreiben ich gebe /o Hay ein und es Passiert nix


    Hier der OOC


    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist noch nicht Eingeloggt !");
    return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, " Du kannst nicht sprechen, du bist gemutet !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, 0xFFE600FF, "NUTZUNG: (/o)oc [ooc chat]");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(string, sizeof(string),"((*%d Admin %s: %s))", PlayerInfo[playerid][pAdmin], sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 0 && (noooc))
    {
    format(string, sizeof(string), "((User %s: %s))", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 1337)
    {
    format(string, sizeof(string), "((%d Admin %s: %s))", 0xD70000FF,PlayerInfo[playerid][pAdmin], sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 1338)
    {
    format(string, sizeof(string), "((%d Admin %s: %s))", 0xD70000FF,PlayerInfo[playerid][pAdmin], sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 2000)
    {
    format(string, sizeof(string), "((%d Stelv.Server Owner %s: %s))", 0xD70000FF,PlayerInfo[playerid][pAdmin], sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 2002)
    {
    format(string, sizeof(string), "((%d Owner %s: %s))", 0xD70000FF,PlayerInfo[playerid][pAdmin], sendername, result);
    OOCOff(0xFF0000FF,string);
    }
    else return 1;
    Log("OA-Chat.txt",string);
    }
    return 1;
    }


    Wo ist der Fehler??


    Ich sehe kein


    MFG


    [GPR]Neon

    Einmal editiert, zuletzt von [CoR]Gamer ()

  • if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist noch nicht Eingeloggt !");
    return 1;
    }
    if (PlayerInfo[playerid][pAdmin] < 1 && noooc == 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Der OOC channel wurde von einem Admin ausgeschaltet !");
    return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, " Du kannst nicht sprechen, du bist gemutet !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "FEHLER: (/o)oc [ooc chat]");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] <= 0)
    {
    format(string,256,"(( %s: %s ))", sendername, result);
    SendClientMessageToAll(0xF0F0F0FF, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 1)
    {
    format(string,256,"(( Probe Supporter %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 2)
    {
    format(string,256,"(( Supporter %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 3)
    {
    format(string,256,"(( Chef Supporter %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 4)
    {
    format(string,256,"(( Trial Admin %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 5)
    {
    format(string,256,"(( Admin %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 6)
    {
    format(string,256,"(( Head Admin %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 1337)
    {
    format(string,256,"(( Co-Projektleiter %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] == 1338)
    {
    format(string,256,"(( Projektleiter %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    else if(PlayerInfo[playerid][pAdmin] >= 2000)
    {
    format(string,256,"(( Baby %s: %s ))",sendername,result);
    SendClientMessageToAll(NB, string);
    }
    printf("%s", string);
    }
    return 1;
    }
    Ich habe es so gemacht

  • Probier es damit
    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Du bist noch nicht Eingeloggt !"); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, " Du kannst nicht sprechen, du bist gemutet !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: (/o)oc [ooc chat]"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 1) { format(string, sizeof(string), "(( *%d Admin %s: %s))", PlayerInfo[playerid][pAdmin], sendername, result); } else if(PlayerInfo[playerid][pSupporter] >= 1) { format(string, sizeof(string), "(( *%d Supporter %s: %s))", PlayerInfo[playerid][pSupporter], sendername, result); } else if(PlayerInfo[playerid][pSupporter] == 6) { format(string, sizeof(string), "(( *%d Admin %s: %s))", PlayerInfo[playerid][pSupporter], sendername, result); }
    else if(PlayerInfo[playerid][pAdmin] == 0 && (noooc)) { format(string, sizeof(string), "(( %s: %s))", sendername, result); } else return 1; OOCOff(COLOR_OOC,string); Log("OA-Chat.txt",string); } return 1; }

    3 Mal editiert, zuletzt von xDNGR ()