Wird geprintet,wird aber nicht verborgen.
[SAMMELTHREAD] Kleine Scripting Fragen
- Rafelder
- Unerledigt
Dein Problem konnte durch einen User gelöst werden? Bedank dich bei ihm indem du seinen Beitrag als Hilfreich markierst sowie einen Daumen oben dalässt
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
-
-
Lass dir mal die IDs ausgeben des Textdraws. Einmal wenn du ihn erstellst und einmal, wenn du ihn löscht/versteckst.
-
Ist es möglich, wenn man einen MAX_WERT definiert hat, diesen dann auch im Minus zu nutzen?
Define:
Hier wird es angewandt
Ist es mir nun möglich, dass MAX_OWNER ein Minus-Wert sein kann trotzdem auch bis 500 sein kann ?Ich hoffe das ist einigermaßen verständlich.
PS: Hier wird bewusst nicht MAX_PLAYERS benutzt! -
Ist es mir nun möglich, dass MAX_OWNER ein Minus-Wert sein kann trotzdem auch bis 500 sein kann ?
Nein, das geht nicht.
Arrays funktionieren ab dem Index 0 bis zu dem Max Wert-1 in diesem Fall 499 (500-1) -
Guten Abend!
Wie kann ich ingame Objekte wie zb. Möbel in einem Haus verschieben per Mausklick wie beim Mapeditor jedoch ohne Mapeditor?
MfG
Allrounder18 -
[wiki]EditObject[/wiki]
Dadurch erscheint die InGame Oberfläche zur Bearbeitung eines Objektes. -
Beitrag von SkeeZy ()
Dieser Beitrag wurde vom Autor aus folgendem Grund gelöscht: selbst gelöst (). -
Komme nicht weiter register dialog erscheint nicht.
serverlog:Code
Alles anzeigen---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team filterscripts = "" (string) Server Plugins -------------- Loading plugin: crashdetect CrashDetect plugin 4.19.4 Loaded. Loading plugin: mysql >> plugin.mysql: R39-6 successfully loaded. Loaded. Loading plugin: sscanf =============================== sscanf plugin loaded. Version: 2.8.3 (c) 2018 Alex "Y_Less" Cole =============================== Loaded. Loading plugin: streamer *** Streamer Plugin v2.9.4 by Incognito loaded *** Loaded. Loading plugin: Whirlpool ================== Whirlpool loaded ================== Loaded. Loading plugin: mapandreas Loaded. Loaded 6 plugins. Started server on port: 7777, with maxplayers: 100 lanmode is OFF. Filterscripts --------------- Loaded 0 filterscripts. AMX (46135320) loaded ======================================= | | | YSI version 3.09.0684 | | By Alex "Y_Less" Cole | | | ======================================= Keine definierte Verbindung gefunden. Vermutung auf Localhost - Verbindung wird initialisiert. Es wurden 10 Lieder geladen. Es wurden 6 Derbymaps geladen. Number of vehicle models: 1 [connection] 127.0.0.1:57942 requests connection cookie. [connection] incoming connection: 127.0.0.1:57942 id: 0 [npc:join] securityguy has joined the server (0:127.0.0.1) [debug] Run time error 4: "Array index out of bounds" [debug] Attempted to read/write array element at negative index -1 [debug] AMX backtrace: [debug] #0 001d01a8 in GivePlayerExp (playerid=0, Float:exp=2.00000, bool:doubleexp=true, reason[]=@006f9f3c "Ticket") at D:\German-Street-Life\gamemodes\gsl.pwn:27916 [debug] #1 00216f30 in PlayerAcceptCopTicket (playerid=0) at D:\German-Street-Life\gamemodes\gsl.pwn:32543 [debug] #2 00058758 in public Itter_OnPlayerDisconnect (playerid=0, reason=2) at D:\German-Street-Life\gamemodes\gsl.pwn:5655 [debug] #3 000214b8 in ?? (0, 2) at D:\German-Street-Life\pawno\include\YSI\y_iterate.inc:909 [debug] #4 0000e40c in public SSCANF_OnPlayerDisconnect (playerid=0, reason=2) at D:\German-Street-Life\pawno\include\YSI\y_hooks/impl.inc:661 [debug] #5 000024f4 in public OnPlayerDisconnect (playerid=0, reason=2) at D:\German-Street-Life\pawno\include\sscanf2.inc:266 [debug] #6 native Kick () in samp-server.exe [debug] #7 00054984 in public Itter_OnPlayerConnect (playerid=0) at D:\German-Street-Life\gamemodes\gsl.pwn:5411 [debug] #8 00020a58 in ?? (0) at D:\German-Street-Life\pawno\include\YSI\y_iterate.inc:646 [debug] #9 0000e278 in public SSCANF_OnPlayerConnect (playerid=0) at D:\German-Street-Life\pawno\include\YSI\y_hooks/impl.inc:618 [debug] #10 000024a8 in public OnPlayerConnect (playerid=0) at D:\German-Street-Life\pawno\include\sscanf2.inc:242 [npc:part] securityguy has left the server (0:2)
mysql log:Code
Alles anzeigen[23:30:57 07/03/19] [DEBUG] mysql_connect - host: "127.0.0.1", user: "gsl", database: "gsl", password: "****", port: 3306, autoreconnect: true, pool_size: 30 [23:30:57 07/03/19] [DEBUG] CMySQLHandle::Create - creating new connection.. [23:30:57 07/03/19] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called [23:30:57 07/03/19] [DEBUG] CMySQLHandle::Create - connection created (id: 1) [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups` WHERE `loaded` = '1'", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `vehicles` WHERE `loaded` = '1' AND `ownertyp` != ", callback: "LoadVehicles", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `interiors`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT username,businesse.* FROM businesse LEFT JOIN accounts ON", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groupfight`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `vehicletrader`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `vehicletrader_spawns`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `achievements` WHERE `active` = '1' ORDER BY `name", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `navicategory`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT username,houses.* FROM houses LEFT JOIN accounts ON accou", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups_buyedcolor` ORDER BY `groupid`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups_weapons` ORDER BY `groupid`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups_alliance` ORDER BY `groupid`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `actors`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `factionlist`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `nodmzone`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `commandconfig`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `badwords`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `teleports`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `mission_patrolcps`", callback: "OnQueryFinished", format: "d" [23:30:58 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `wanteds`", callback: "OnQueryFinished", format: "d" [23:30:58 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `irc`", callback: "OnQueryFinished", format: "d" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_surprise` WHERE timestamp < (Now() - INTERVAL 3", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_money` WHERE date < (Now() - INTERVAL 2 DAY)", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_gchat` WHERE timestamp < (Now() - INTERVAL 7 DA", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_dchat` WHERE timestamp < (Now() - INTERVAL 7 DA", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_command` WHERE date < (Now() - INTERVAL 7 DAY)", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE `accounts` SET `online` = '0'", callback: "(null)", format: "(null)"
-
Komme nicht weiter register dialog erscheint nicht.
serverlog:Code
Alles anzeigen---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team filterscripts = "" (string) Server Plugins -------------- Loading plugin: crashdetect CrashDetect plugin 4.19.4 Loaded. Loading plugin: mysql >> plugin.mysql: R39-6 successfully loaded. Loaded. Loading plugin: sscanf =============================== sscanf plugin loaded. Version: 2.8.3 (c) 2018 Alex "Y_Less" Cole =============================== Loaded. Loading plugin: streamer *** Streamer Plugin v2.9.4 by Incognito loaded *** Loaded. Loading plugin: Whirlpool ================== Whirlpool loaded ================== Loaded. Loading plugin: mapandreas Loaded. Loaded 6 plugins. Started server on port: 7777, with maxplayers: 100 lanmode is OFF. Filterscripts --------------- Loaded 0 filterscripts. AMX (46135320) loaded ======================================= | | | YSI version 3.09.0684 | | By Alex "Y_Less" Cole | | | ======================================= Keine definierte Verbindung gefunden. Vermutung auf Localhost - Verbindung wird initialisiert. Es wurden 10 Lieder geladen. Es wurden 6 Derbymaps geladen. Number of vehicle models: 1 [connection] 127.0.0.1:57942 requests connection cookie. [connection] incoming connection: 127.0.0.1:57942 id: 0 [npc:join] securityguy has joined the server (0:127.0.0.1) [debug] Run time error 4: "Array index out of bounds" [debug] Attempted to read/write array element at negative index -1 [debug] AMX backtrace: [debug] #0 001d01a8 in GivePlayerExp (playerid=0, Float:exp=2.00000, bool:doubleexp=true, reason[]=@006f9f3c "Ticket") at D:\German-Street-Life\gamemodes\gsl.pwn:27916 [debug] #1 00216f30 in PlayerAcceptCopTicket (playerid=0) at D:\German-Street-Life\gamemodes\gsl.pwn:32543 [debug] #2 00058758 in public Itter_OnPlayerDisconnect (playerid=0, reason=2) at D:\German-Street-Life\gamemodes\gsl.pwn:5655 [debug] #3 000214b8 in ?? (0, 2) at D:\German-Street-Life\pawno\include\YSI\y_iterate.inc:909 [debug] #4 0000e40c in public SSCANF_OnPlayerDisconnect (playerid=0, reason=2) at D:\German-Street-Life\pawno\include\YSI\y_hooks/impl.inc:661 [debug] #5 000024f4 in public OnPlayerDisconnect (playerid=0, reason=2) at D:\German-Street-Life\pawno\include\sscanf2.inc:266 [debug] #6 native Kick () in samp-server.exe [debug] #7 00054984 in public Itter_OnPlayerConnect (playerid=0) at D:\German-Street-Life\gamemodes\gsl.pwn:5411 [debug] #8 00020a58 in ?? (0) at D:\German-Street-Life\pawno\include\YSI\y_iterate.inc:646 [debug] #9 0000e278 in public SSCANF_OnPlayerConnect (playerid=0) at D:\German-Street-Life\pawno\include\YSI\y_hooks/impl.inc:618 [debug] #10 000024a8 in public OnPlayerConnect (playerid=0) at D:\German-Street-Life\pawno\include\sscanf2.inc:242 [npc:part] securityguy has left the server (0:2)
mysql log:
Code
Alles anzeigen[23:30:57 07/03/19] [DEBUG] mysql_connect - host: "127.0.0.1", user: "gsl", database: "gsl", password: "****", port: 3306, autoreconnect: true, pool_size: 30 [23:30:57 07/03/19] [DEBUG] CMySQLHandle::Create - creating new connection.. [23:30:57 07/03/19] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called [23:30:57 07/03/19] [DEBUG] CMySQLHandle::Create - connection created (id: 1) [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups` WHERE `loaded` = '1'", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `vehicles` WHERE `loaded` = '1' AND `ownertyp` != ", callback: "LoadVehicles", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `interiors`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT username,businesse.* FROM businesse LEFT JOIN accounts ON", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groupfight`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `vehicletrader`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `vehicletrader_spawns`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `achievements` WHERE `active` = '1' ORDER BY `name", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `navicategory`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT username,houses.* FROM houses LEFT JOIN accounts ON accou", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups_buyedcolor` ORDER BY `groupid`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups_weapons` ORDER BY `groupid`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `groups_alliance` ORDER BY `groupid`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `actors`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `factionlist`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `nodmzone`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `commandconfig`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `badwords`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `teleports`", callback: "OnQueryFinished", format: "d" [23:30:57 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `mission_patrolcps`", callback: "OnQueryFinished", format: "d" [23:30:58 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `wanteds`", callback: "OnQueryFinished", format: "d" [23:30:58 07/03/19] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `irc`", callback: "OnQueryFinished", format: "d" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_surprise` WHERE timestamp < (Now() - INTERVAL 3", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_money` WHERE date < (Now() - INTERVAL 2 DAY)", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_gchat` WHERE timestamp < (Now() - INTERVAL 7 DA", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_dchat` WHERE timestamp < (Now() - INTERVAL 7 DA", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "DELETE from `log_command` WHERE date < (Now() - INTERVAL 7 DAY)", callback: "(null)", format: "(null)" [23:30:58 07/03/19] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE `accounts` SET `online` = '0'", callback: "(null)", format: "(null)"
Wäre hilfreich wenn du den Code noch dazugeben kannst, von den Teilen wo der Dialog beinhaltet ist.
-
Wäre hilfreich wenn du den Code noch dazugeben kannst, von den Teilen wo der Dialog beinhaltet ist.
hat sich geklärt tzd danke.
Neuer Fehler:
Stack/heap size: 479240128 bytes; estimated max. usage: unknown, due to recursion
-
Stack/heap size: 479240128 bytes; estimated max. usage: unknown, due to recursion
Du hast höchstwahrscheinlich einen viel zu großen String, der kleiner sein könnte. Teste alle strings in der Funktion die das auslöst und ändere die Größe ggf.
-
hat sich geklärt tzd danke.
Neuer Fehler:Stack/heap size: 479240128 bytes; estimated max. usage: unknown, due to recursion
Du hast einen Array(String) in einer Funktion höchstwahrscheinlich der zu vielen lokalen Speicher frisst, du kannst diesen versuchen runterzusetzen.
Oder alternativ fügst du das ein:- #pragma dynamic 479240128
-
Moin!
Wofür ist die Gravity Funktion in SAMP?
MfG
Allrounder18
-
Wie der Funktionsname sagt, setzt es die Gravitation des Spielers, kannst die Funktion ja selber mal ausprobieren, ist ziemlich lustig damit rumzuspielen. (Tipp: Hol dir nen BMX und spring rum )
-
Wie der Funktionsname sagt, setzt es die Gravitation des Spielers, kannst die Funktion ja selber mal ausprobieren, ist ziemlich lustig damit rumzuspielen. (Tipp: Hol dir nen BMX und spring rum )
Die Gravitation wird für den Server gesetzt. Nicht für einen einzelnen Spieler. Standard ist glaube ich 0.008
-
Die Gravitation wird für den Server gesetzt. Nicht für einen einzelnen Spieler. Standard ist glaube ich 0.008
Stimmt.
Der Standard ist 0.008, steht auch hier [wiki]SetGravity[/wiki] -
Gibt es die Möglichkeit einem Fahrzeug anhand seines Kennzeichen eine Variablen zuzuordnen?
Wie heißt diese Funktion falls es eine gibt, ich habe nichts dazu gefunden. -
Musst du wohl selber eine Funktion schreiben. Hiermit kriegst du das Kennzeichen vom Fahrzeug
[wiki]GetVehicleNumberPlate[/wiki] -
Danke @LeonMrBonnie
C
Alles anzeigenstock IsVehiclePlateValid(inputplate) { for(new i = 0; i < MAX_VEHICLES; i++) { new plate; GetVehicleNumberPlate(i, plate); if(plate == inputplate) { return i; } } return 1; }
Habe hier mal was geschrieben, ich will, dass er mir dann die Vehicleid gibt, aber wo gibt er mir die aus?
Ich frage ja ab if(IsVehiclePlateValid(inputtext)) -
Du hast einen Array(String) in einer Funktion höchstwahrscheinlich der zu vielen lokalen Speicher frisst, du kannst diesen versuchen runterzusetzen.
Oder alternativ fügst du das ein:jetzt kommt
Header size: 24212 bytes
Code size: 2241280 bytes
Data size: 7326116 bytes
Stack/heap size: 1916960512 bytes; estimated max. usage: unknown, due to recursion
Total requirements:1926552120 bytes -