Skocz do zawartości

Pytka

Użytkownik
  • Zawartość

    6
  • Rejestracja

  • Ostatnia wizyta

O Pytka

  • Tytuł
    Nowicjusz

Informacje profilowe

  • Płeć
    Mężczyzna

Ostatnie wizyty

Blok z ostatnimi odwiedzającymi dany profil jest wyłączony i nie jest wyświetlany użytkownikom.

  1. Witam! Proszę o pomoc, zastanawiam się jak to zrobić, żeby gracz był widoczny na radarze tylko do jego obrębu. Jeżeli ktoś wie i chciał by mi pomóc, proszę o odpowiedź!
  2. Pytka

    W mysql nie tworzą się tabele

    Naprawiłem i już uruchamia gamemoda, ale coś z mysql nie działa: 16:03:22] [MySQL] Error (0): Failed to exeute query. Lost connection to MySQL server during query. [16:03:22] [MySQL] Error (0): Function: mysql_store_result called when no prior successful query executed. Lost connection to MySQL server during query. [16:03:22] [MySQL] Error (0): Function: mysql_num_rows called when no result stored. Lost connection to MySQL server during query.
  3. Pytka

    W mysql nie tworzą się tabele

    Nativechecker wgrany, crashdetect też. A o co chodzi z tym pawno -d3? Dopiero zaczynam swoją przygodę z programowaniem w pwn i jeszcze nie wiem co to jest i jak to zrobić Logi po wgraniu tych 2 pluginów: [08:43:45] Server Plugins [08:43:45] -------------- [08:43:45] Loading plugin: mysql.dll [08:43:45] SA:MP MySQL Plugin v2.1.1 Loaded. [08:43:45] Loaded. [08:43:45] Loading plugin: crashdetect.dll [08:43:45] [MySQL] Thread running. Threadsafe: Yes. [08:43:45] CrashDetect v4.15.1 is OK. [08:43:45] Loaded. [08:43:45] Loading plugin: sscanf.dll [08:43:45] [08:43:45] =============================== [08:43:45] sscanf plugin loaded. [08:43:45] Version: 2.8.2 [08:43:45] (c) 2012 Alex "Y_Less" Cole [08:43:45] =============================== [08:43:45] Loaded. [08:43:45] Loading plugin: streamer.dll [08:43:45] *** Streamer Plugin v2.8.2 by Incognito loaded *** [08:43:45] Loaded. [08:43:45] Loading plugin: audio.dll [08:43:45] *** Audio Plugin v0.5 R2 by Incognito loaded *** [08:43:45] Loaded. [08:43:45] Loading plugin: timerfix.dll [08:43:45] >> TimerFix v1.5 successfully loaded. [08:43:45] Loaded. [08:43:45] Loading plugin: nativechecker.dll [08:43:45] Loaded. [08:43:45] Loaded 7 plugins. [08:43:45] [08:43:45] Filterscripts [08:43:45] --------------- [08:43:45] Loaded 0 filterscripts. [08:43:46] [MySQL] Connected (0) to 'samp14820'@'db4free.net via TCP/IP'. [08:43:46] [MySQL] Server Version 5.7.13. [08:43:47] Wczytano: 1 Kont, 0 Wejść, 0 Kicków, 0 Banów z ustawień [08:43:47] Naliczono 1 pcar, zmienna 'i' wynosci: 1 [08:43:47] Naliczono 1 UIDPLAYER, zmienna 'i' wynosci: 1 [08:43:47] [debug] Run time error 5: "Invalid memory access" [08:43:47] [debug] AMX backtrace: [08:43:47] [debug] #0 0000b828 in ?? (17775012, 180000, 1) from RealTruck2016.amx [08:43:47] [debug] #1 0000004b in public zcmd_OnGameModeInit () from RealTruck2016.amx [08:43:47] [debug] #2 native CallLocalFunction () from samp-server.exe [08:43:47] [debug] #3 00000320 in public OnGameModeInit () from RealTruck2016.amx [08:43:47] Number of vehicle models: 0
  4. Pytka

    W mysql nie tworzą się tabele

    Zrobiłem tak jak napisałeś, już mniej błędów, ale niestety są [07:51:13] [MySQL] Connected (0) to 'samp14820'@'db4free.net via TCP/IP'. [07:51:13] [MySQL] Server Version 5.7.13. [07:51:13] Wczytano: 0 Kont, 0 Wejść, 0 Kicków, 0 Banów z ustawień [07:51:13] Naliczono 1 pcar, zmienna 'i' wynosci: 1 [07:51:13] Naliczono 1 UIDPLAYER, zmienna 'i' wynosci: 1 [07:51:13] [debug] Run time error 5: "Invalid memory access" [07:51:13] [debug] AMX backtrace: [07:51:13] [debug] #0 0000b828 in ?? (17775012, 180000, 1) from test.amx [07:51:13] [debug] #1 0000004b in public zcmd_OnGameModeInit () from test.amx [07:51:13] [debug] #2 native CallLocalFunction () from samp-server.exe [07:51:13] [debug] #3 00000320 in public OnGameModeInit () from test.amx [07:51:13] Number of vehicle models: 0 [07:51:31] --- Server Shutting Down.
  5. Pytka

    W mysql nie tworzą się tabele

    Wolałbym mieć to w kodzie, mniej plików do ogarnięcia Wie ktoś może jak to naprawić?
  6. Witam serdecznie! Tak jak w temacie, nie tworzą mi się tabele pomimo zapisania funkcji Create Table If Not Exists w gamemodzie. Od razu piszę, że nie jest to wina hostingu ponieważ sprawdzam już 2 hosting i nadal nie działa. Tutaj kody błędów: [19:21:48] [MySQL] Connected (0) to 'samp14820'@'db4free.net via TCP/IP'. [19:21:48] [MySQL] Server Version 5.7.13. [19:21:48] [MySQL] Error (0): Failed to exeute query. Table 'samp14820.Ustawienia' doesn't exist. [19:21:48] [MySQL] Error (0): Failed to exeute query. Table 'samp14820.PojazdyGraczy' doesn't exist. [19:21:48] [MySQL] Error (0): Function: mysql_store_result called when no prior successful query executed. Table 'samp14820.PojazdyGraczy' doesn't exist. [19:21:48] [MySQL] Error (0): Function: mysql_store_result called when no result stored. Table 'samp14820.PojazdyGraczy' doesn't exist. [19:21:48] Naliczono 1 pcar, zmienna 'i' wynosci: 1 [19:21:48] [MySQL] Error (0): Failed to exeute query. Table 'samp14820.Gracze' doesn't exist. [19:21:48] [MySQL] Error (0): Function: mysql_store_result called when no prior successful query executed. Table 'samp14820.Gracze' doesn't exist. [19:21:48] [MySQL] Error (0): Function: mysql_store_result called when no result stored. Table 'samp14820.Gracze' doesn't exist. [19:21:48] Naliczono 1 UIDPLAYER, zmienna 'i' wynosci: 1 [19:21:48] [debug] Run time error 5: "Invalid memory access" [19:21:48] [debug] AMX backtrace: [19:21:48] [debug] #0 0000b814 in ?? (17774984, 180000, 1) from test.amx [19:21:48] [debug] #1 0000004b in public zcmd_OnGameModeInit () from test.amx [19:21:48] [debug] #2 native CallLocalFunction () from samp-server.exe [19:21:48] [debug] #3 00000320 in public OnGameModeInit () from test.amx [19:21:48] Number of vehicle models: 0 Tutaj kod z gamemoda: new StringUstawienia[512]; strcat(StringUstawienia, "CREATE TABLE IF NOT EXISTS Ustawienia ("); strcat(StringUstawienia, "allkonta INT(10),"); strcat(StringUstawienia, "allwejsc INT(10),"); strcat(StringUstawienia, "allkick INT(10),"); strcat(StringUstawienia, "allban INT(10))"); mysql_query(StringUstawienia); new StringUsers[800]; strcat(StringUsers, "CREATE TABLE IF NOT EXISTS Gracze ("); strcat(StringUsers, "Nick VARCHAR(40),"); strcat(StringUsers, "Haslo VARCHAR(40),"); strcat(StringUsers, "Score INT(10),"); strcat(StringUsers, "Kasa INT(10),"); strcat(StringUsers, "Dostarczen INT(10),"); strcat(StringUsers, "Sila INT(10),"); strcat(StringUsers, "Skin INT(10),"); strcat(StringUsers, "PozycjaX FLOAT(10),"); strcat(StringUsers, "PozycjaY FLOAT(10),"); strcat(StringUsers, "PozycjaZ FLOAT(10),"); strcat(StringUsers, "PozycjaR FLOAT(10),"); strcat(StringUsers, "Glod INT(10),"); strcat(StringUsers, "Sen INT(10),"); strcat(StringUsers, "DMG FLOAT(10),"); strcat(StringUsers, "Poziom INT(10),"); strcat(StringUsers, "Opis VARCHAR(64),"); strcat(StringUsers, "Online INT(10),"); strcat(StringUsers, "Gwiazdki INT(10),"); strcat(StringUsers, "PrawoJazdyA INT(10),"); strcat(StringUsers, "PrawoJazdyB INT(10),"); strcat(StringUsers, "PrawoJazdyC INT(10),"); strcat(StringUsers, "Health FLOAT(10),"); strcat(StringUsers, "Armour FLOAT(10),"); strcat(StringUsers, "CzasPracy INT(10),"); strcat(StringUsers, "PremiumPoints INT(10),"); strcat(StringUsers, "KartaWedkarska INT(10),"); strcat(StringUsers, "Bank INT(10),"); strcat(StringUsers, "Pozyczka INT(10),"); strcat(StringUsers, "UstalonaSplata INT(10),"); strcat(StringUsers, "Ranga INT(10))"); mysql_query(StringUsers); new sd[512]; strcat(sd, " CREATE TABLE IF NOT EXISTS PolicjaG ("); strcat(sd, "`Nick` VARCHAR(24),"); strcat(sd, "`Ranga` INT(12) DEFAULT '0',"); strcat(sd, "`Stopien` VARCHAR(24),"); strcat(sd, "`Plusy` INT(12) DEFAULT '0',"); strcat(sd, "`Minusy` INT(12) DEFAULT '0',"); strcat(sd, "`CzasGry` INT(12) DEFAULT '0',"); strcat(sd, "`Wyplata` INT(12) DEFAULT '0',"); strcat(sd, "`OstatniaWyplata` DATETIME)"); mysql_query(sd); new sf[512]; strcat(sf, " CREATE TABLE IF NOT EXISTS Texty ("); strcat(sf, "`WstepIntro` VARCHAR(512),"); strcat(sf, "`Bugi` VARCHAR(512),"); strcat(sf, "`Pytania` VARCHAR(512),"); strcat(sf, "`Gazetka` VARCHAR(512))"); mysql_query(sf); new pcar[512]; strcat(pcar, " CREATE TABLE IF NOT EXISTS PojazdyGraczy ("); strcat(pcar, "`Nick` VARCHAR(24),"); strcat(pcar, "`Nazwa` VARCHAR(36),"); strcat(pcar, "`Tablica` VARCHAR(24),"); strcat(pcar, "`UID` INT(10),"); strcat(pcar, "`Model` INT(10),"); strcat(pcar, "`SpawnX` FLOAT(10),"); strcat(pcar, "`SpawnY` FLOAT(10),"); strcat(pcar, "`SpawnZ` FLOAT(10),"); strcat(pcar, "`SpawnR` FLOAT(10),"); strcat(pcar, "`ZyciePojazdu` FLOAT(10),"); strcat(pcar, "`Przebieg` FLOAT(10),"); strcat(pcar, "`Paliwo` FLOAT(10),"); strcat(pcar, "`CisnienieLP` INT(10),"); strcat(pcar, "`CisnieniePP` INT(10),"); strcat(pcar, "`CisnienieLT` INT(10),"); strcat(pcar, "`CisnieniePT` INT(10),"); strcat(pcar, "`Olej` INT(10),"); strcat(pcar, "`Slot` INT(10))"); mysql_query(pcar); new strings[256]; strcat(strings, "CREATE TABLE IF NOT EXISTS Scigani ("); strcat(strings, "Nick VARCHAR(24),"); strcat(strings, "Poziom INT(10),"); strcat(strings, "Powod VARCHAR(64),"); strcat(strings, "Policjant VARCHAR(24))"); mysql_query(strings); Proszę o pomoc
×