Konnte es soeben lösen, Danke
Beiträge von Fruchtsalat
-
-
Wir bräuchten auch einmal die Fehlermeldung.
-
SetTimer PosTimer 1000
:PosTimer
if(IsPlayerInRangeOfPoint2D(X, Y, RADIUS)) {
SendChat("/tanke")
}
return -
Moin, 10€ per Überweisung?
-
Rücke den mal anständig ein
Codeformat_sting(sizeof(query), "UPDATE users SET level = '%d', money = '%d', kills = '%d', deaths = '%d' WHERE id = '%d'", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][p_id]"); mysql_query(query)
>> Ungetestet <<
-
Moin, dieser Code tut nicht das was er soll... merkwürdig... erkennt jemand den Fehler? Ich bin aktuell echt ratlos.
PHP
Alles anzeigen<?php while($row = $ban_result->fetch_assoc()) { echo "<tr>"; echo "<td>" . $row['ID'] . "</td>"; echo "<td>" . $row['Name'] . "</td>"; echo "<td>" . $row['Grund'] . "</td>"; echo "<td>" . $row['Admin'] . "</td>"; echo "<td>" . $row['Datum'] . " um " . $row['Uhrzeit'] . "</td>"; if($row['Zeit'] == -1 ) { echo "<td>" . "Permanent" . "</td>"; } else { echo "<td>" . $row['Zeit'] . "</td>"; } echo "</tr>"; } ?>
-
-
Das ding ist, es funktioniert trotzdessen nicht.
-
EDIT:// Ich depp hatte beim hochladen den recordings ordner vergessen *facepalm* jetzt bleiben die auch drauf
Einmal die Leavemeldungen der Bots:
[22:34:57] [npc:part] [BOT]Tutorial has left the server (0:0)
[22:34:57] [npc:part] [BOT]HandyLaden has left the server (1:0)
[22:34:57] [npc:part] [BOT]Bank has left the server (2:0)Auf einem anderen Server (Samp4You) liefen diese einwandfrei
Code
Alles anzeigenpublic OnPlayerConnect(playerid) { new Joinsslogs[130]; mapicon(playerid); AddPlayer(playerid); if(IsPlayerNPC(playerid))return 1; SetPlayerColor(playerid,SAMP_WEISS); ShowLoad(playerid); new string[256]; format(string,sizeof(string),"%s~n~hat den Server betreten.", SpielerName(playerid)); InfoTextForAll("Betreten", string, 5000); format(Joinsslogs,sizeof(Joinsslogs),"Name:%s | IP:%s",SpielerName(playerid),SpielerIP(playerid)); Log("Spieler_Joint.txd",Joinsslogs); printf("Spieler Gejoint: %s",SpielerName(playerid)); new LSCN = random(10); switch(LSCN) { //Andererstrenggeheimerkram } new MusikCH = random(4); switch(MusikCH) { //Musikkram } TogglePlayerClock(playerid,0); DestroyBuildings(playerid); gettime(stunde,minute); SetPlayerTime(playerid,stunde,minute); SpamChat(playerid,0); //Ne menge Textdraws return 1; }
-
Moin, irgendwie zeigt mir dieser Loop nur den letzten eintrag:
PHP
Alles anzeigen<?php while ($ban = mysqli_fetch_assoc($ban_result)) { ?> <tr> <td><?php echo $ban['Name']; ?></td> <td><?php echo $ban['Grund']; ?></td> <td><?php echo $ban['Admin']; ?></td> <td><?php echo $ban['Datum']; ?> um <?php echo $ban['Uhrzeit']; ?></td> <?php if($ban['Zeit'] == -1) { echo "<td>Permanent</td>"; } else { ?> <td><?php echo $ban['Zeit']; ?></td> <?php } ?> </tr> <?php } ?>
Was mache ich falsch? Ich glaube irgendwo fehlt ein i++ bin mir aber nicht so sicher
Danke im vorraus -
Konnte es mittlerweile fixxen... offenbar war meine Böse defekte Festplatte schuld
Aber die Bots disconnecten noch und ich bekomme keine serverlog.txt mehr :O -
Habe es mitlerweile gefixxt.
Ich habe in der a_InfoText das Array vergrößert 200 > 256 -
Kurze Frage:
Pawno sagt mir das dass Array zu klein währe, doch ist es relativ groß o.0?
C:\Users\Strenggeheimer Pfad\SAMP Server\gamemodes\Script.pwn(76900) : error 047: array sizes do not match, or destination array is too smallCode
Alles anzeigenpublic Restart() { new string[256]; Sekunden--; format(string,sizeof(string),"Der Server startet in %i Sekunden neu!",Sekunden); InfoTextForAll("Serverrestart", string, 1000); //GameTextForAll(string,1000,4); if(Sekunden <= 0) { KillTimer(Serverrestarter); GameModeExit(); } return 1; }
-
Achte dann aber darauf das die nachrichten auch für den Nutzer als gelesen abgespeichert werden, sonst kriegt er immer wieder die selbe nachricht.
-
new ADUTYName[MAX_PLAYER_NAME];
new string[128];das ist die komplette funktion(befehl)
Code
Alles anzeigenCOMMAND:aduty(playerid,params[]) { if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,SAMP_ROT,""ACCINFO"Du hast keine erlaubnis diesen Befehl benutzen zu drüfen."); if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,SAMP_WEISS,""ACCINFO"Du bist nicht eingeloggt!"); if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,SAMP_WEISS,""#HTML_BLAU"Verwendung:"#HTML_WEISS" /back"); new string[128]; if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,SAMP_ROT,""ACCINFO"Du bist kein Admin Mitglied oder hast nicht den erforderlichen Rang."); if(Spieler[playerid][pAdminOnduty] == false) { SendClientMessage(playerid,SAMP_WEISS,"Du bist nun "#HTML_GRUEN"Aduty"#HTML_WEISS" gegangen!"); SetPlayerScore(playerid,GetPlayerLevel(playerid)); Spieler[playerid][pAdminOnduty] = true; GetPlayerName(playerid, ADUTYName, sizeof(ADUTYName)); format(string,sizeof(string),"[CoRP]%s)",ADUTYName); SetPlayerName(playerid,string); new Float:Admin3DText_X,Float:Admin3DText_Y,Float:Admin3DText_Z; GetPlayerPos(playerid,Admin3DText_X,Admin3DText_Y,Admin3DText_Z); //AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_ROT" "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); switch(Spieler[playerid][pAdmin]) { case 1: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_GRUEN" Supporter "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); case 2: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_GRUEN" Moderator "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); case 3: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_GRUEN" Administrator "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); case 4: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_GRUEN" Techniker"#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); case 5: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_GRUEN" Super Administrator "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); case 6: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_ROT" Community Manager "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); case 7: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_ROT" Inhaber "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); case 8: AdminDuty_3DText[playerid] = Create3DTextLabel(""#HTML_BLAU"[ "#HTML_WEISS"Spieler Informationen"#HTML_WEISS" "#HTML_BLAU"]"#HTML_WEISS"\nSpieler ist als "#HTML_BLAU" Developer "#HTML_WEISS"Duty",SAMP_WEISS,Admin3DText_X,Admin3DText_Y,Admin3DText_Z,50.0,0,0); } Attach3DTextLabelToPlayer(AdminDuty_3DText[playerid],playerid,0.0,0.0,0.75); } else if(Spieler[playerid][pAdminOnduty] == true) { SendClientMessage(playerid,SAMP_WEISS,"Du bist nun "#HTML_ROT"OFF_Aduty"#HTML_WEISS" gegangen!"); Delete3DTextLabel(AdminDuty_3DText[playerid]); Spieler[playerid][pAdminOnduty] = false; //SetPlayerName(playerid,Spieler[playerid][pName]); SetPlayerName(playerid, Spieler[playerid][pName]); SetPlayerScore(playerid,GetPlayerLevel(playerid)); if(Spieler[playerid][pMaske] == 1 && Spieler[playerid][pFraktion] != 6) { SetPlayerScore(playerid,random(50) + 122); format(string,sizeof(string),"Unbekannter(%i)",random(50) + 122); SetPlayerName(playerid,string); } if(Spieler[playerid][pDuty] == 4 && Spieler[playerid][pFraktion] != 6) { SetPlayerScore(playerid,random(50) + 122); format(string,24,"SWAT%i",random(50) + 122); SetPlayerName(playerid,string); } if(Spieler[playerid][pDuty] == 4 && Spieler[playerid][pFraktion] == 6 && Spieler[playerid][pMaske] == 1) { SetPlayerScore(playerid,random(50) + 122); format(string,24,"SEAL%i",random(50) + 122); SetPlayerName(playerid,string); } if(Spieler[playerid][pDuty] == 5 && Spieler[playerid][pFraktion] == 6 && Spieler[playerid][pMaske] == 1) { SetPlayerScore(playerid,random(50) + 122); format(string,24,"RANGER%i",random(50) + 122); SetPlayerName(playerid,string); } } return 1; }
-
Würde es ja gerne ausprobieren, kriege aber einen Runtimeerror 17 nach dem ich folgenden Code reingehauen habe:
CodeGetPlayerName(playerid, ADUTYName, sizeof(ADUTYName)); format(string,sizeof(string),"[CoRP]%s)",ADUTYName); SetPlayerName(playerid,string); // wenn er bereits adminduty ist SetPlayerName(playerid, Spieler[playerid][pName]);
EDIT:// Als berechtigungen hat der npcmodes && scriptfiles order 770 bekommen
-
Also, nun stürtz er nicht mehr ab, obwohl die Bots irgendwie sofort wieder disconecten
[01:12:05] [DEBUG] Stock Log: hFile=0
-
Die Logfile wird ja direkt beim Connect aufgerufen, daher kann ich das so leider nicht sagen... was mich aber wundert ist das die logfile eine txd endung hat und alle anderen eine txt
-
Code
Alles anzeigen[23:43:08] [debug] Server crashed while executing Script.amx [23:43:08] [debug] AMX backtrace: [23:43:08] [debug] #0 native fwrite () from samp03svr [23:43:08] [debug] #1 0052b790 in Log (log[]=@01266634 "Spieler_Joint.txd", text[]=@016d4fb4 "Name:Fruchtsalat | IP:****.**.***.***") at C:\Users\****\Neuer Ordner (2)\gamemodes\Script.pwn:82025 [23:43:08] [debug] #2 000d7340 in public SSCANF_OnPlayerConnect (playerid=0) at C:\Users\****\Neuer Ordner (2)\gamemodes\Script.pwn:11905 [23:43:08] [debug] #3 native CallLocalFunction () from samp03svr [23:43:08] [debug] #4 00000c60 in public Streamer_OnPlayerConnect (playerid=0) at C:\Users\****\Neuer Ordner (2)\pawno\include\/Gloabe Includes/sscanf2.inc:114 [23:43:08] [debug] #5 00000598 in public OnPlayerConnect (playerid=0) at C:\Users\****\Neuer Ordner (2)\pawno\include\/Gloabe Includes/streamer.inc:277 [23:43:08] [debug] Native backtrace: [23:43:08] [debug] #0 b652ae8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [23:43:08] [debug] #1 b6523bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [23:43:08] [debug] #2 b6524dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [23:43:08] [debug] #3 b6525226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [23:43:08] [debug] #4 b652aadc in ?? () from plugins/crashdetect.so [23:43:08] [debug] #5 b7710410 in ?? () [23:43:08] [debug] #6 b7710428 in ?? () [23:43:08] [debug] #7 b747f6c1 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:43:08] [debug] #8 b7482af2 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:43:08] [debug] #9 b7478878 in __assert_fail () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:43:08] [debug] #10 0809b99c in ?? () from ./samp03svr [23:43:08] [debug] #11 0809bdff in ?? () from ./samp03svr [23:43:08] [debug] #12 080950e4 in ?? () from ./samp03svr [23:43:08] [debug] #13 b652694b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [23:43:08] [debug] #14 b65298f8 in ?? () from plugins/crashdetect.so [23:43:08] [debug] #15 b652d916 in amx_Exec () from plugins/crashdetect.so [23:43:08] [debug] #16 b6525be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [23:43:08] [debug] #17 b6529659 in ?? () from plugins/crashdetect.so [23:43:08] [debug] #18 080dfd62 in ?? () from ./samp03svr [23:43:08] [debug] #19 080950e4 in ?? () from ./samp03svr [23:43:08] [debug] #20 b652694b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [23:43:08] [debug] #21 b65298f8 in ?? () from plugins/crashdetect.so [23:43:08] [debug] #22 b652d916 in amx_Exec () from plugins/crashdetect.so [23:43:08] [debug] #23 b6525be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [23:43:08] [debug] #24 b6529659 in ?? () from plugins/crashdetect.so [23:43:08] [debug] #25 080a51c9 in ?? () from ./samp03svr [23:43:08] [debug] #26 080d09ff in ?? () from ./samp03svr [23:43:08] [debug] #27 080b5515 in ?? () from ./samp03svr [23:43:08] [debug] #28 08071d38 in ?? () from ./samp03svr [23:43:08] [debug] #29 08071e32 in ?? () from ./samp03svr [23:43:08] [debug] #30 0807bc50 in ?? () from ./samp03svr [23:43:08] [debug] #31 080aed3d in ?? () from ./samp03svr [23:43:08] [debug] #32 080aef02 in ?? () from ./samp03svr [23:43:08] [debug] #33 080aa13a in ?? () from ./samp03svr [23:43:08] [debug] #34 b746be46 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:43:08] [debug] #35 0804b4e1 in ?? () from ./samp03svr
Code
Alles anzeigenstock Log(log[],text[]) { new string[1000],File:hFile; if(fexist(log)) { hFile = fopen(log,io_append); } else hFile = fopen(log,io_write); gettime(stunde,minute,sekunde); getdate(jahr,monat,tag); format(string,sizeof(string),"%02d/%02d/%04d-%02d:%02d:%02d | %s\r\n",tag,monat,jahr,stunde,minute,sekunde,text); fwrite(hFile,string); fclose(hFile); return 1; }
-
Moin moin,
Habe da ein klitzekleines Problem, sobald ich mich versuche zu connecten:Code
Alles anzeigen[23:01:59] [debug] Server crashed while executing Script.amx [23:01:59] [debug] AMX backtrace: [23:01:59] [debug] #0 native fwrite () from samp03svr [23:01:59] [debug] #1 0052a858 in ?? (19293748, 23941044) from Script.amx [23:01:59] [debug] #2 000d7274 in public SSCANF_OnPlayerConnect (0) from Script.amx [23:01:59] [debug] #3 native CallLocalFunction () from samp03svr [23:01:59] [debug] #4 00000bec in public Streamer_OnPlayerConnect (0) from Script.amx [23:01:59] [debug] #5 00000550 in public OnPlayerConnect (0) from Script.amx [23:01:59] [debug] Native backtrace: [23:01:59] [debug] #0 b65b3e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [23:01:59] [debug] #1 b65acbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [23:01:59] [debug] #2 b65addbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [23:01:59] [debug] #3 b65ae226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [23:01:59] [debug] #4 b65b3adc in ?? () from plugins/crashdetect.so [23:01:59] [debug] #5 b7799410 in ?? () [23:01:59] [debug] #6 b7799428 in ?? () [23:01:59] [debug] #7 b75086c1 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:01:59] [debug] #8 b750baf2 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:01:59] [debug] #9 b7501878 in __assert_fail () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:01:59] [debug] #10 0809b99c in ?? () from ./samp03svr [23:01:59] [debug] #11 0809bdff in ?? () from ./samp03svr [23:01:59] [debug] #12 080950e4 in ?? () from ./samp03svr [23:01:59] [debug] #13 b65af94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [23:01:59] [debug] #14 b65b28f8 in ?? () from plugins/crashdetect.so [23:01:59] [debug] #15 b65b6916 in amx_Exec () from plugins/crashdetect.so [23:01:59] [debug] #16 b65aebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [23:01:59] [debug] #17 b65b2659 in ?? () from plugins/crashdetect.so [23:01:59] [debug] #18 080dfd62 in ?? () from ./samp03svr [23:01:59] [debug] #19 080950e4 in ?? () from ./samp03svr [23:01:59] [debug] #20 b65af94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [23:01:59] [debug] #21 b65b28f8 in ?? () from plugins/crashdetect.so [23:01:59] [debug] #22 b65b6916 in amx_Exec () from plugins/crashdetect.so [23:01:59] [debug] #23 b65aebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [23:01:59] [debug] #24 b65b2659 in ?? () from plugins/crashdetect.so [23:01:59] [debug] #25 080a51c9 in ?? () from ./samp03svr [23:01:59] [debug] #26 080d09ff in ?? () from ./samp03svr [23:01:59] [debug] #27 080b5515 in ?? () from ./samp03svr [23:01:59] [debug] #28 08071d38 in ?? () from ./samp03svr [23:01:59] [debug] #29 08071e32 in ?? () from ./samp03svr [23:01:59] [debug] #30 0807bc50 in ?? () from ./samp03svr [23:01:59] [debug] #31 080aed3d in ?? () from ./samp03svr [23:01:59] [debug] #32 080aef02 in ?? () from ./samp03svr [23:01:59] [debug] #33 080aa13a in ?? () from ./samp03svr [23:01:59] [debug] #34 b74f4e46 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [23:01:59] [debug] #35 0804b4e1 in ?? () from ./samp03svr
Ich hoffe mir kann da wer helfen °-°