Guten Tag,
ich habe ein Problem mit meinem /setrangame.
Immer wenn ich diesen ausführe, stürzt der Screen des Servers ab.
Hier der Code:
ocmd:setrangname10(playerid,params[]){
new rankname10,string[128],query[256];
if(GetPVarInt(playerid,"Eingeloggt") != 1)return SendClientMessage(playerid,Rot,"Du musst eingeloggt sein, um diesen Befehl zu nutzen!");
if(SpielerInfo[playerid][pLeader]==0)return SendClientMessage(playerid,Rot,"Du bist dazu nicht befugt!");
if(sscanf(params,"s",rankname10))return SendClientMessage(playerid, Rot, "FEHLER: /setrangname [Rangname]");
format(query, sizeof(query), "UPDATE `gangrangs` SET `rangname10` = '%s' WHERE `fID` = '%i'", rankname10, SpielerInfo[playerid][pFraktion]);
mysql_query(query);
format(string,sizeof(string),"LeaderCmd: Der Rank: 10 wurde zu Rang: %s umbenannt.",rankname10);
SendClientMessage(playerid,Blau,string);
return 1;
}
Und der LeaderCmd wird mir auch nicht angezeigt.
Bitte um schnelle Hilfe
MfG
AndyWalker
//Edit:
mit "crashdetect.so" funktioniert der Befehl, aber ich habe einen Whitescreen in GTA...
[17:05:45] [debug] Server recieved an interrupt signal[17:05:45] [debug] Native backtrace:[17:05:45] [debug] #0 b69e75f9 in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so[17:05:45] [debug] #1 b69e9bc9 in crashdetect::Interrupt () from plugins/crashdetect.so[17:05:45] [debug] #2 b69ef1e4 in ?? () from plugins/crashdetect.so[17:05:45] [debug] #3 b74b8b08 in ?? () from /lib32/libc.so.6[17:05:45] [debug] #4 080b146e in ?? () from ./samp03svr[17:05:45] [debug] #5 b74a4ca6 in __libc_start_main () from /lib32/libc.so.6[17:05:45] [debug] #6 0804b521 in ?? () from ./samp03svr[17:05:45] --- Server Shutting Down.[17:05:45] [debug] Server crashed while executing Project-RP.amx[17:05:45] [debug] AMX backtrace:[17:05:45] [debug] #0 native mysql_close () [b72f0a30] from mysql.so[17:05:45] [debug] #1 000342f8 in public OnGameModeExit () at Project-RP.p:2535[17:05:45] [debug] Native backtrace:[17:05:45] [debug] #0 b69e75f9 in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so[17:05:45] [debug] #1 b69e9c7c in crashdetect::Crash () from plugins/crashdetect.so[17:05:45] [debug] #2 b69ef123 in ?? () from plugins/crashdetect.so[17:05:45] [debug] #3 b74b8b08 in ?? () from /lib32/libc.so.6[17:05:45] [debug] #4 b7313231 in free_rows () from plugins/mysql.so[17:05:45] [debug] #5 b73136e7 in mysql_free_result () from plugins/mysql.so[17:05:45] [debug] #6 b72edab6 in CMySQLHandler::~CMySQLHandler () from plugins/mysql.so[17:05:45] [debug] #7 b72f0a7b in NativeFunctions::n_mysql_close () from plugins/mysql.so[17:05:45] [debug] #8 08093c94 in ?? () from ./samp03svr[17:05:45] [debug] #9 b69e9f45 in crashdetect::HandleAmxCallback () from plugins/crashdetect.so[17:05:45] [debug] #10 b69edce2 in ?? () from plugins/crashdetect.so[17:05:45] [debug] #11 b69f077e in amx_Exec () from plugins/crashdetect.so[17:05:45] [debug] #12 b69ea022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so[17:05:45] [debug] #13 b69edd1b in ?? () from plugins/crashdetect.so[17:05:45] [debug] #14 080aca37 in ?? () from ./samp03svr[17:05:45] [debug] #15 080b2588 in ?? () from ./samp03svr[17:05:45] [debug] #16 080b1511 in ?? () from ./samp03svr[17:05:45] [debug] #17 b74a4ca6 in __libc_start_main () from /lib32/libc.so.6[17:05:45] [debug] #18 0804b521 in ?? () from ./samp03svr