Jump to content

CrosRoad95

Members
  • Posts

    128
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by CrosRoad95

  1. http://prntscr.com/faezxo when i try compile server Ważność Kod Opis Projekt Plik Wiersz Stan pominięcia Błąd TRK0005 Failed to locate: "CL.exe". No special file found. pthread D:\mtab\mtasa-blue-master\Build\TRACKER 1
  2. nie można odnaleźć określonego modułu == Can not find the specified module this is my error on linux i have diffrent problem with multithreading
  3. i run this and again, net_d.dll not working
  4. I use visual studio 2017 to compile server mta on windows, version debug win32, compile successful. When i try turn on server i got information about missing "net_d.dll", ok, i compile on version an hour ago so i download lastest nightly mtasa-1.5.4-full_rc-11352-20170517.exe for net.dll, i put in folder, try turn on and again! whats wrong i do? http://prntscr.com/fadlsy
  5. https://wiki.multitheftauto.com/wiki/Element/Shader#How_HLSL_Effect_Files_file_integrate_into_MTA:SA how can i use example at bottom of page named "Not so simple" texture display, but i want to move this texture, i use this function r() return math.random(1,100)/13 end dxSetShaderValue(shader,"Tex0",texture); dxSetShaderValue(shader,"gWorldViewProjection",r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r()); gWorld, Position etc values and doesnt work
  6. if getElementType(player)=="console" then
  7. Mta stuff should afk scripters and people in poll what he need for servers, The best idea would be the highest priority. If an idea has been added, another identical poll. Now, are added things that people dont realy need, debugSleep ? who use this?
  8. I make everythink and i cant compile ml_base on 64bit ubuntu! i got error ml_base# make gcc -g -MD -Wall -I./ -m32 -fPIC -shared -Wl,-soname,ml_base.so.1,-R./ -m32 -o ml_base.so ./CFunctions.o ./CThread.o ./CThreadData.o ./ml_base.o -lpthread -lstdc++ -llua /usr/bin/ld: cannot find -llua collect2: error: ld returned 1 exit status make: *** [ml_base] Błąd 1 i try install lualib etc but didn't working
  9. i compile successfull, when i run mta-server64 and got this error
  10. When i try compile server on ubuntu 64bit, when i try start it using ./mta-server64 i got this error enable multithreading to use std::thread: what should i do?
  11. If someone make public gamemod that owners of server need to download, update resource etc. My idea is to make automated download resources from gamemode, when author of gamemod update this, and owner of server restart script then resource automatic update. example meta could look like this: <meta url="https://github.com/multitheftauto/mtasa-resources/tree/master/%5Bgameplay%5D/fastrope"> </meta>
  12. I dont understand ( im from poland ) In config should be option to unlock package io and os lib ( hosting could block some of this )
  13. Yes, i know that i can install module for server, but its problematic and not all script need new functions. Cool idea would be option to make simple c++ file, compile to .so or .dll and load to only 1 script.Somethink like: <script src="script.so"/> script.so have few function like int test(int i){ return i++; } bool test_two(){ return false } script=loadLib("script.so") script:call("functionname",arguments) script:functions() -- return all functions script.meta -- return table of information about file and i can call script:call("test",1) and return 2
  14. is possible to get all methods and variables from element? somethink like: vehicle:getMethods() print this page https://wiki.multitheftauto.com/wiki/Vehicle_class and other (define by user methods)
  15. On every server function to save vehicles, players etc take a lot of code, you must loop all datas, position, handling etc. good idea is to make function like dump(element) which return all element possible thinks as string, and second function element=loadFromDump(string) which load element from this string this could be use for vehicle and players.
  16. function split should have parametr like "tryFormat" example result=split("mystring,123,mystring",",",true) -- true is "try format" result is table {"mystring",123,"mystring"} insted {"mystring","123","mystring"}
  17. is possible to select from mysql using 1 select which output like this in { ["name"]="mynickanem", ["other_column"]="kldsjskldjf", ["licenses"]={ { ["name"]="driver", ["ban"]=0, } { ["name"]="gun", ["ban"]=0, } } } from 2 tables "accounts" and "licenses"
  18. Hello, i have this code: local env = {outputChatBox=outputChatBox} function run(untrusted_code) if untrusted_code:byte(1) == 27 then return nil, "binary bytecode prohibited" end local untrusted_function, message = loadstring(untrusted_code) if not untrusted_function then return nil, message end setfenv(untrusted_function, env) return pcall(untrusted_function) end and i want to stop execution like stopResource i want too limit execution function to example 10 per second, how can i do this?
  19. adding the possibility of setting physical elements that would be great i can use this example for: on vehicle hit fence, fence set phisic=true for 2 second and fly 20 meters forward.
  20. Add colors into server console, black and white is ugly.
  21. add option to make text like Bold Italic Underline Strikethrough and combo like something something2 something3 in gui text,gridlist, dxdraw, chatbox etc example outputChatBox("[b]bold[/b][i]italic[/i]")
  22. Cool will be when in mta i can load and cell .dll or .so file, for example: i have file .dll, in my file is function "helloworld" and i can make code example: lib=loadLibrary("mylib.so") -- 'so' on linux, 'dll' on windows libraryCell(lib,"helloworld") and function libraryCell return string "hello world" in my opinion this is easier to implement than modules only server-side
  23. how detect who make this, on my server play around 150 players [2016-11-19 22:36:30] [Network] OutCommandQueue > 400000 msgs. This is due to server overload or script freeze and error mta-server[12061]: segfault at a ip 00000000f6a037d5 sp 00000000f51fba40 error 4 in deathmatch.so[f63c5000+937000]
  24. please update lua 5.1 to 5.4, lua and add serverside option to enable package, io and os library ( i know that require can download virus ) and add to config option <loadstring_client>enable||disable</loadstring_client> && <loadstring_server>enable||disable</loadstring_server> ( when loadstring is used on client, player is kicked by anti cheat and loadstring not running, when used on server, only block, both should output information to log (ip,code,file,line))
×
×
  • Create New...