Selbstgemachter O-Chat lässt server Crashen[WICHTIG]

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
  • Sobald ich in Benutze bäm Server Weg...



    ocmd:o(playerid,params[])
    {
    new text;
    if(PlayerInfo[playerid][pAdmin] >= 1 || ochat == 1){
    if(sscanf(params,"s",text))return SendClientMessage(playerid,ROT,"/o [NACHRICHT]");
    new string1[128],string2[128],string3[128],string4[128],string5[128],string6[128],string7[128],string8[128],string1335[128],string1336[128],string1337[128],string1338[128],string1339[128];
    format(string1,sizeof(string1),"(( Supporter %s: %s ))",SpielerName(playerid), text);
    format(string2,sizeof(string2),"(( Supporter %s: %s ))",SpielerName(playerid), text);
    format(string3,sizeof(string3),"(( Moderator %s: ))",SpielerName(playerid), text);
    format(string4,sizeof(string4),"(( Moderator %s: ))",SpielerName(playerid), text);
    format(string5,sizeof(string5),"(( Admin %s: ))",SpielerName(playerid), text);
    format(string6,sizeof(string6),"(( Admin %s: ))",SpielerName(playerid), text);
    format(string7,sizeof(string7),"(( Admin %s: ))",SpielerName(playerid), text);
    format(string8,sizeof(string8),"(( Admin %s: ))",SpielerName(playerid), text);
    format(string1335,sizeof(string1335),"(( Mapper %s: )) ",SpielerName(playerid), text);
    format(string1336,sizeof(string1336),"(( Scripter %s: )) ",SpielerName(playerid), text);
    format(string1337,sizeof(string1337),"(( Full-Admin %s: ))",SpielerName(playerid), text);
    format(string1338,sizeof(string1338),"(( Projektleiter %s: ))",SpielerName(playerid), text);
    format(string1339,sizeof(string1339),"(( Server-Owner %s: ))",SpielerName(playerid), text);
    if(PlayerInfo[playerid][pAdmin] == 1) { SendClientMessageToAll(WHITE,string1); }
    else if(PlayerInfo[playerid][pAdmin] == 2) { SendClientMessageToAll(WHITE,string2); }
    else if(PlayerInfo[playerid][pAdmin] == 3) { SendClientMessageToAll(WHITE,string3); }
    else if(PlayerInfo[playerid][pAdmin] == 4) { SendClientMessageToAll(WHITE,string4); }
    else if(PlayerInfo[playerid][pAdmin] == 5) { SendClientMessageToAll(WHITE,string5); }
    else if(PlayerInfo[playerid][pAdmin] == 6) { SendClientMessageToAll(WHITE,string6); }
    else if(PlayerInfo[playerid][pAdmin] == 7) { SendClientMessageToAll(WHITE,string7); }
    else if(PlayerInfo[playerid][pAdmin] == 8) { SendClientMessageToAll(WHITE,string8); }
    else if(PlayerInfo[playerid][pAdmin] == 1335) { SendClientMessageToAll(WHITE,string1335); }
    else if(PlayerInfo[playerid][pAdmin] == 1336) { SendClientMessageToAll(WHITE,string1336); }
    else if(PlayerInfo[playerid][pAdmin] == 1337) { SendClientMessageToAll(WHITE,string1337); }
    else if(PlayerInfo[playerid][pAdmin] == 1338) { SendClientMessageToAll(WHITE,string1338); }
    else if(PlayerInfo[playerid][pAdmin] == 1339) { SendClientMessageToAll(WHITE,string1339); }


    }
    return 1;
    }


    Hoffe ihr wisst weiter.


  • [Ohne Worte]
    ocmd:o(playerid,params[])
    {
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    if(sscanf(params,"s",string))return SendClientMessage(playerid,ROT,"/o [NACHRICHT]");
    if(PlayerInfo[playerid][pAdmin] == 1) {format(string,sizeof(string),"(( Supporter %s: %s ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 2) {format(string,sizeof(string),"(( Supporter %s: %s ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 3) {format(string,sizeof(string),"(( Moderator %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 4) {format(string,sizeof(string),"(( Moderator %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 5) {format(string,sizeof(string),"(( Admin %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 6) {format(string,sizeof(string),"(( Admin %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 7) {format(string,sizeof(string),"(( Admin %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 8) {format(string,sizeof(string),"(( Admin %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 1335) {format(string,sizeof(string),"(( Mapper %s: )) ", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 1336) {format(string,sizeof(string),"(( Scripter %s: )) ", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 1337) {format(string,sizeof(string),"(( Full-Admin %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 1338) {format(string,sizeof(string),"(( Projektleiter %s: ))", name, string);}
    else if(PlayerInfo[playerid][pAdmin] == 1339) {format(string,sizeof(string),"(( Server-Owner %s: ))", name, string);}
    SendClientMessageToAll(WHITE,string);
    }
    return 1;
    }


    Gruss: Sonic

    I didn't hit you. I high fived your face.