• Content Count

  • Joined

  • Last visited

  • Days Won


world last won the day on September 8 2018

world had the most liked content!

Community Reputation

8 Neutral

About world

  • Rank

Recent Profile Visitors

830 profile views
  1. @volkv hey. I'm trying to read serverstatus.xml but how will I get the lines written in Cyrillic?
  2. Hey. My server crashed with the same error and I updated it to 19.3. But now players (presumably with installed skins for weapons and other) cannot enter the server. Players receive an error about invalid iwd files.
  3. This is not a support forum =AK=
  4. No, I'm trying to move the players to one of the standard spawn points. It works: case "forcespawn": level notify("force_spawn"); ********************************* forceSpawn() { self endon("disconnect"); while(true) { level waittill("force_spawn"); self thread maps\mp\gametypes\_globallogic::spawnPlayer(); } } But I wonder why the server crashes if you call the function directly from the case block in scriptcommands.gsx
  5. Hey. I want to send the player to spawn using the cmd command, but the server shuts down (no errors) if I do it from scriptcommands.gsx This not work (scriptcommands.gsx) : case "testspawn": self thread maps\mp\gametypes\_globallogic::spawnPlayer(); break; This works (player.gsx) : onConnect() { self endon( "disconnect" ); self thread test(); *** test() { self endon("disconnect"); while(true) { if ( self MeleeButtonPressed() ) { self thread maps\mp\gametypes\_globallogic::spawnPlayer(); } wait 0.3; } } What am I doing wrong? @leiizko maybe
  6. world

    Lua Plugin

    @leiizko Is it possible for the plugin to work with mysql ? I am getting the error: ****************** Lua Error: ****************** error loading module 'luasql.mysql' from file '/usr/local/lib/lua/5.1/luasql/': /usr/local/lib/lua/5.1/luasql/ wrong ELF class: ELFCLASS64 stack traceback: [C]: at 0xdf8d2260 [C]: in function 'require' ....cod4x_logs/server_2/lua_scripts/test.lua:8: in function <....cod4x_logs/server_2/lua_scripts/test.lua:3> ************************************************ test.lua: Plugin_ScrAddFunction( "mysqltest" ) function mysqltest () mysql = require "luasql.mysql" local env = mysql.mysql() local conn = env:connect('dbName','user','password') print(env,conn) status,errorString = conn:execute([[CREATE TABLE sample3 (id INTEGER, name TEXT)]]) print(status,errorString ) status,errorString = conn:execute([[INSERT INTO sample3 values('12','Raj')]]) print(status,errorString ) cursor,errorString = conn:execute([[select * from sample3]]) print(cursor,errorString) row = cursor:fetch ({}, "a") file ="/home/admin/cod4x_logs/server_2/lua_scripts/test.txt", "a") io.output(file) while row do io.write("\n" .. string.format("Id: %s, Name: %s",, row = cursor:fetch (row, "a") end -- close everything cursor:close() conn:close() env:close() file:close() end
  7. world

    Lua Plugin

    It worked after I specified the absolute path to test.lua lua_loadscript "/home/admin/cod4x_logs/server_2/lua_scripts/test.lua"
  8. world

    Lua Plugin

    Everything I found about lua in logfile. Checking if the plugin is not already loaded... Checking if the plugin file exists and is of correct format... Parsing plugin function names... Done parsing plugin function names. Loading the plugin .so... Plugin OK! Loading... Fetching plugin information... Executing plugin's OnInit... Adding a plugin command for plugin 0, command name: lua_loadscript. Command added. Adding a plugin command for plugin 0, command name: lua_debug. Command added. Plugin lua loaded successfully. Server is currently running 1 plugins. Error: Waited 196 msec for missing asset "codescripts/delete.gsx". Error: Error: ******* script compile error ******* Error: unknown function: (file 'code/lua_test.gsx', line 4) print( "Square root of " + num + " is " + mysqrt( num ) + "\n" ); * ************************************ ----- Server Shutdown ----- With the reason: Server fatal crashed: script compile error unknown function print( "Square root of " + num + " is " + mysqrt( num ) + "\n" ); (see console for details) qconsole.log
  9. world

    Lua Plugin

    Does the plugin work with the latest server version? I get an error unknown function print( "Square root of " + num + " is " + mysqrt( num ) + "\n" ); plugin was loaded fine Plugin lua loaded successfully. Server is currently running 1 plugins.
  10. It seems that the rcon protocol has some limitations and is not intended to receive such a volume of data. I was unable to receive more than 24 packets with a total size of up to 79k bytes.
  11. Thank. I will try to implement this via TCP
  12. Hey. There are 1700 lines in my banlist. When I try to request the dumpbanlist command via rcon (rcon Protocol), the complete list does not come to me. What could be the problem? Is there a limit on the number of bytes or packets received? The count of bytes and packs received is always different.