Diese Fehler wird mir in der Serverkonsole angezeigt, wenn ich den OOC nutze.
OOC: ocmd@2:o,ooc(playerid,params[])
{
if ((noooc == 0) && PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid,COLOR_ERROR,"FEHLER:{"#HT_NORM"} Der OOC Chat wurde ausgeschaltet.");
new string[280];
new string2[280];
if(sscanf(params,"s",string2))return SendClientMessage(playerid,COLOR_ERROR,"FEHLER:{"#HT_NORM"} /(o)oc [TEXT]");
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pAdmin] == 0) { format(string, sizeof(string), "(( %s: %s ))", sendername, string2);}
if(PlayerInfo[playerid][pAdmin] == 1) { format(string, sizeof(string), "(( {"#HT_SUPP"}Supporter {FFFFFF}%s: %s ))", sendername, string2);}
if(PlayerInfo[playerid][pAdmin] == 2) { format(string, sizeof(string), "(( {"#HT_MOD"}Moderator {FFFFFF}%s: %s ))", sendername, string2);}
if(PlayerInfo[playerid][pAdmin] == 3) { format(string, sizeof(string), "(( {"#HT_SUPMOD"}Super Moderator {FFFFFF}%s: %s ))", sendername, string2);}
if(PlayerInfo[playerid][pAdmin] == 4) { format(string, sizeof(string), "(( {"#HT_ADM"}Administrator {FFFFFF}%s: %s ))", sendername, string2);}
if(PlayerInfo[playerid][pAdmin] == 5) { format(string, sizeof(string), "(( {"#HT_SUPADM"}Super Administrator {FFFFFF}%s: {FFFFFF}%s ))", sendername, string2);}
if(PlayerInfo[playerid][pAdmin] >= 6) { format(string, sizeof(string), "(( {"#HT_OWNER"}Serverleiter {FFFFFF}%s: %s ))", sendername, string2);}
OOCOff(COLOR_OOC,string);
format(string,sizeof(string),"OOC-LOG: %s schrieb: %s",sendername,string2);
OOCLog(string);
return 1;
}
LOG:
public OOCLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s \n",string);
new File:hFile;
hFile = fopen("/logs/ooc.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
Hoffe ejmand kann helfen,
Gruss