Jump to content

uhm

Members
  • Posts

    275
  • Joined

  • Last visited

Everything posted by uhm

  1. I am pretty sure GTASA needs a video card to work.. it's light but not that light, an Intel onboard card won't do try to run gtasa single player, if that doesnt work either then youre just gonna need a pc with a gfx card
  2. youre free to alter the code and host it edit: service edited to do nightlies now and update time set to 2 hrs http://uhm.sparksptpm.co.uk/mta-linux/latest http://uhm.sparksptpm.co.uk/mta-linux/get new source code: <?php /**************************************************** MTA LINUX SERVER LATEST BUILD FETCH SERVICE Documentation: [url=http://uhm.sparksptpm.co.uk/mta-linux/]http://uhm.sparksptpm.co.uk/mta-linux/[/url] Developed by uhm under Apache License v2.0 *****************************************************/ function get_data($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3); $data = curl_exec($ch); curl_close($ch); return $data; } function getBetween($haystack,$start,$end,$index=0) { $positions = array(); $positionsB = array(); $count = 0; $cnt2=0; while($cnt2<($index+1) && $count = strpos($haystack , $start , $count+1)) { $positions[] = $count+strlen($start); $cnt2++; } $cnt2=0; while($cnt2<($index+1) && $count = strpos($haystack , $end , $positions[$cnt2]+1)) { $positionsB[] = $count; $cnt2++; } return substr($haystack,$positions[$index],$positionsB[$index]-$positions[$index]); } // get last check date $time = filemtime('cache.txt'); if ((time() - $time) > 7200) // has it been longer than 2 hrs? (7200 seconds) { $data = get_data('https://nightly.multitheftauto.com/'); $version = getBetween($data,'<img src="mta_nightly.php?image=gz" alt="gz" /> <a href="','"'); file_put_contents ( 'cache.txt' , $version ); // make sure to chmod this file to 777 } else { $version = file_get_contents('cache.txt'); } if (isset($_GET['latest'])) { echo getBetween($version,'/','.tar'); } elseif (isset($_GET['get'])) { header('Location: ' . 'https://nightly.multitheftauto.com/' . $version); } else { echo 'Invalid request; see [url=http://uhm.sparksptpm.co.uk/mta-linux/']http://uhm.sparksptpm.co.uk/mta-linux/'[/url]; } ?>
  3. Hi Specially for you I built this: http://uhm.sparksptpm.co.uk/mta-linux/latest fetch latest version URL as text http://uhm.sparksptpm.co.uk/mta-linux/get fetch latest version (redirect, suitable for use with wget) http://uhm.sparksptpm.co.uk/mta-linux/ documentation and source download checks every 4 hours and caches result you are welcome to give me free lifetime hosting now
  4. not at all. yall treating this like an argument of mac vs windows (which one you "like better"), but SQLite is designed to have basic functionality so applications can run their own internal db (iOS apps also use this). while MySQL is an enterprise solution with features I mentioned earlier but also security, stored procedures, transactions, scalability... all of these are clearly more advanced possibilities laymen won't need so it's really up to a developer to make their choice in this case, developing a login resource, then I too would advise mysql to answer ur question about remote access: mysql is the only way as sqlite does not support multiconnections. if you dont want remote access then you can still use mysql because you just allow localhost connections (as it is out of the box installations) and naturally lets not forget theres still login required so not just anyone can access the data
  5. mysql is only really useful in the following cases: * u want to hook it up to another database like a website (ie forum account integration) or just want to store it elsewhere * u want to do relational database things like foreign keys and triggers up to you
  6. uhm

    Error MTA Server

    i see from ur sig that its fixed now? but u dont have to write ur ip because its like only for host companies that have like 10 IPs for 1 server then they can pick which ip it is on or if you only want to run the server via hamachi and not via LAN that kind of stuff if its empty it listens on all ips so that cant be related
  7. uhm

    I've a problem!

    maybe u put it to windowed mode with same resolution as screen do regular full screen (no check mark) or smaller res option > video > make screenshot if not fixed plz
  8. uhm

    Error MTA Server

    check mtaserver.conf try change 22005 to like 46798 also did u put something in ? bc u must not put anything usualy if not help plz put mtaserver.conf in here
  9. problem aint deathmatch.so its libreadline do like apt-get install libreadline5-dev or some shizzle
  10. uhm

    Power saving

    disable non necessary hardware to name a thing
  11. uhm

    Question

    what object list? like ur map file? or like in the map editor that you dont want too see so many things?? make screenshot if other
  12. http://answers.microsoft.com/en-us/wind ... d125857c8c
  13. syntax error; unclosed elements "Fun Cars" and "Real Cars". use: <catalog type="vehicle"> <group name="Fun Cars"> <group name="Cars"> <vehicle id="495" name="Voozer" /> <vehicle id="462" name="Hover Board" /> <vehicle id="593" name="Flying Carpet" /> <vehicle id="571" name="Slicer" /> </group> </group> <group name="Real Cars"> <group name="Cars"> <vehicle id="602" name="Ferrari 458 Italia" /> <vehicle id="527" name="Aston Martin DB7 Zagato 2003" /> <vehicle id="405" name="1988 BMW 535is E28 US" /> <vehicle id="402" name="BMW X5" /> </group> </group> <group name="Aircraft"> <group name="Helicopters"> <vehicle id="548" name="Cargobob" /> <vehicle id="425" name="Hunter" /> <vehicle id="417" name="Leviathan" /> <vehicle id="487" name="Maverick" /> <vehicle id="488" name="News Chopper" /> <vehicle id="497" name="Police Maverick" /> <vehicle id="563" name="Raindance" /> <vehicle id="447" name="Seasparrow" /> <vehicle id="469" name="Sparrow" /> </group> <group name="Planes, Jets and Airlines"> <vehicle id="592" name="Andromada" /> <vehicle id="577" name="AT-400" /> <vehicle id="511" name="Beagle" /> <vehicle id="512" name="Cropduster" /> <vehicle id="593" name="Dodo" /> <vehicle id="520" name="Hydra" /> <vehicle id="553" name="Nevada" /> <vehicle id="476" name="Rustler" /> <vehicle id="519" name="Shamal" /> <vehicle id="460" name="Skimmer" /> <vehicle id="513" name="Stuntplane" /> </group> </group> <group name="Bikes"> <group name="Motorbikes"> <vehicle id="581" name="BF-400" /> <vehicle id="462" name=":O" /> <vehicle id="521" name="FCR-900" /> <vehicle id="463" name="Freeway" /> <vehicle id="523" name="HPV1000" /> <vehicle id="522" name="NRG-500" /> <vehicle id="461" name="PCJ-600" /> <vehicle id="448" name="Pizza Boy" /> <vehicle id="468" name="Sanchez" /> <vehicle id="586" name="Wayfarer" /> <vehicle id="471" name="Quadbike" /> </group> <group name="Bicycles"> <vehicle id="509" name="Bike" /> <vehicle id="481" name="BMX" /> <vehicle id="510" name="Mountain bike" /> </group> </group> <group name="Boats"> <vehicle id="472" name="Coastguard" /> <vehicle id="473" name="Dinghy" /> <vehicle id="493" name="Jetmax" /> <vehicle id="595" name="Launch" /> <vehicle id="484" name="Marquis" /> <vehicle id="430" name="Predator" /> <vehicle id="453" name="Reefer" /> <vehicle id="452" name="Speeder" /> <vehicle id="446" name="Squalo" /> <vehicle id="454" name="Tropic" /> </group> <group name="Cars"> <group name="Sports Cars"> <vehicle id="602" name="Alpha" /> <vehicle id="429" name="Banshee" /> <vehicle id="402" name="Buffalo" /> <vehicle id="541" name="Bullet" /> <vehicle id="415" name="Cheetah" /> <vehicle id="480" name="Comet" /> <vehicle id="562" name="Elegy" /> <vehicle id="587" name="Euros" /> <vehicle id="565" name="Flash" /> <vehicle id="411" name="Infernus" /> <vehicle id="559" name="Jester" /> <vehicle id="603" name="Phoenix" /> <vehicle id="560" name="Sultan" /> <vehicle id="506" name="Super GT" /> <vehicle id="451" name="Turismo" /> <vehicle id="558" name="Uranus" /> <vehicle id="555" name="Windsor" /> <vehicle id="477" name="ZR-350" /> </group> <group name="Lowriders"> <vehicle id="536" name="Blade" /> <vehicle id="575" name="Broadway" /> <vehicle id="518" name="Buccaneer" /> <vehicle id="419" name="Esperanto" /> <vehicle id="534" name="Remington" /> <vehicle id="567" name="Savanna" /> <vehicle id="535" name="Slamvan" /> <vehicle id="576" name="Tornado" /> <vehicle id="412" name="Voodoo" /> </group> <group name="2-Door"> <vehicle id="496" name="Blista Compact" /> <vehicle id="401" name="Bravura" /> <vehicle id="527" name="Cadrona" /> <vehicle id="542" name="Clover" /> <vehicle id="533" name="Feltzer" /> <vehicle id="526" name="Fortune" /> <vehicle id="474" name="Hermes" /> <vehicle id="545" name="Hustler" /> <vehicle id="517" name="Majestic" /> <vehicle id="410" name="Manana" /> <vehicle id="436" name="Previon" /> <vehicle id="475" name="Sabre" /> <vehicle id="439" name="Stallion" /> <vehicle id="549" name="Tampa" /> <vehicle id="491" name="Virgo" /> </group> <group name="4-Door"> <vehicle id="445" name="Admiral" /> <vehicle id="438" name="Cabbie" /> <vehicle id="507" name="Elegant" /> <vehicle id="585" name="Emperor" /> <vehicle id="466" name="Glendale" /> <vehicle id="492" name="Greenwood" /> <vehicle id="546" name="Intruder" /> <vehicle id="551" name="Merit" /> <vehicle id="516" name="Nebula" /> <vehicle id="467" name="Oceanic" /> <vehicle id="426" name="Premier" /> <vehicle id="547" name="Primo" /> <vehicle id="405" name="Sentinel" /> <vehicle id="580" name="Stafford" /> <vehicle id="409" name="Stretch" /> <vehicle id="550" name="Sunrise" /> <vehicle id="566" name="Tahoma" /> <vehicle id="420" name="Taxi" /> <vehicle id="540" name="Vincent" /> <vehicle id="421" name="Washington" /> <vehicle id="529" name="Willard" /> </group> </group> <group name="Emergency"> <vehicle id="416" name="Ambulance" /> <vehicle id="433" name="Barracks" /> <vehicle id="427" name="Enforcer" /> <vehicle id="490" name="FBI rancher" /> <vehicle id="528" name="FBI truck" /> <vehicle id="407" name="Fire truck" /> <vehicle id="544" name="Fire truck (ladder)" /> <vehicle id="596" name="Police car (LS)" /> <vehicle id="598" name="Police car (LV)" /> <vehicle id="597" name="Police car (SF)" /> <vehicle id="599" name="Police ranger" /> <vehicle id="432" name="Rhino" /> <vehicle id="601" name="S.W.A.T." /> </group> <group name="Heavy Vehicles"> <group name="Industrial"> <vehicle id="524" name="Cement truck" /> <vehicle id="578" name="DFT-30" /> <vehicle id="486" name="Dozer" /> <vehicle id="406" name="Dumper" /> <vehicle id="573" name="Dune" /> <vehicle id="455" name="Flatbed" /> <vehicle id="530" name="Forklift" /> <vehicle id="403" name="Linerunner" /> <vehicle id="443" name="Packer" /> <vehicle id="515" name="Roadtrain" /> <vehicle id="574" name="Sweeper" /> <vehicle id="514" name="Tanker" /> <vehicle id="525" name="Towtruck" /> <vehicle id="408" name="Trashmaster" /> <vehicle id="552" name="Utility van" /> </group> <group name="Trailers"> <vehicle id="606" name="Baggage trailer (covered)" /> <vehicle id="607" name="Baggage trailer (Uncovered)" /> <vehicle id="610" name="Farm trailer" /> <vehicle id="537" name="Freight train" /> <vehicle id="590" name="Freight train boxcar" /> <vehicle id="569" name="Freight train flatbed" /> <vehicle id="611" name="Street Clean trailer" /> <vehicle id="584" name="Gas trailer" /> <vehicle id="608" name="Trailer 1" /> <vehicle id="435" name="Trailer 2" /> <vehicle id="450" name="Trailer 3" /> <vehicle id="591" name="Trailer 4" /> </group> <group name="Trucks"> <vehicle id="499" name="Benson" /> <vehicle id="609" name="Black Boxville" /> <vehicle id="422" name="Bobcat" /> <vehicle id="498" name="Boxville" /> <vehicle id="414" name="Mule" /> <vehicle id="600" name="Picador" /> <vehicle id="543" name="Sadler" /> <vehicle id="428" name="Securicar" /> <vehicle id="478" name="Walton" /> <vehicle id="456" name="Yankee" /> <vehicle id="554" name="Yosemite" /> </group> <group name="Vans"> <vehicle id="459" name="Berkley's RC van" /> <vehicle id="482" name="Burrito" /> <vehicle id="483" name="Camper" /> <vehicle id="508" name="Journey" /> <vehicle id="418" name="Moonbeam" /> <vehicle id="582" name="News van" /> <vehicle id="413" name="Pony" /> <vehicle id="440" name="Rumpo" /> </group> </group> <group name="Misc"> <group name="Other"> <vehicle id="485" name="Baggage" /> <vehicle id="568" name="Bandito" /> <vehicle id="424" name="BF Injection" /> <vehicle id="504" name="Bloodring Banger" /> <vehicle id="538" name="Brownstreak Engine" /> <vehicle id="431" name="Bus" /> <vehicle id="457" name="Caddy" /> <vehicle id="437" name="Coach" /> <vehicle id="532" name="Combine harvester" /> <vehicle id="588" name="Hotdog" /> <vehicle id="434" name="Hotknife" /> <vehicle id="494" name="Hotring racer" /> <vehicle id="502" name="Hotring racer 2" /> <vehicle id="503" name="Hotring racer 3" /> <vehicle id="444" name="Monster" /> <vehicle id="556" name="Monster 2" /> <vehicle id="557" name="Monster 3" /> <vehicle id="572" name="Mower" /> <vehicle id="423" name="Mr. Whoopee" /> <vehicle id="571" name="Kart" /> <vehicle id="531" name="Tractor" /> <vehicle id="449" name="Trolly" /> <vehicle id="583" name="Tug" /> <vehicle id="539" name="Vortex" /> </group> <group name="RC Vehicles"> <vehicle id="441" name="RC Bandit" /> <vehicle id="464" name="RC Baron" /> <vehicle id="594" name="RC Flower Pot" />
  14. uhm

    table index is nil

    also i dunno if im talking bs right now but do you ever do runningStreaks = {} in other words construct the runningStreaks table also y are u using both object notation and table notation ? is that allowed? idk legit question runningStreaks[player]["name"] = getPlayerFromName (player ) runningStreaks[player].x ------> runningStreaks[player]["name"] = getPlayerFromName (player ) runningStreaks[player]["x"] ----- ?
  15. uhm

    Lua board

    well i wuz trying to create something more advanced in mtasa using SOAP but i ended up with the problem that i'd use libraries that included other libraries all by using the require function which is disabled by mta because its supposedly unsafe its possible to omit using loadstring even then you'd have to change a bunch of stuff (eg the returned type is not a variable, but a function and you have to edit every library to remove comments from em and also change the require function to something else) if mtalua allowed that require thing in the first place i think it would clear the way for more advanced features and we would all benefit from it and then such board would be p neat yes but now mta's lua is to 'real' lua what samp's pawno is to whatever non-objective c-like language* that is
  16. uhm

    small problem

    2. do u use shaders on ur server? especially the blur one is quite heavy even for pr0 pc 1. go to Race map in resources folder and open meta.xml i think (there is someth1ng like "
  17. like w/ onPlayerChat but instead of if msg=lol do like if msg:find("lol")~=nil * untested huehue
  18. cloudflare lolzzzzzzzzzzzzzzzzzzzzzzzzzz but eh................ nothing thats cheaper than 1 bitcoin per mth* if u no the perp u should report them to the police epic or call their mom * based on exch rate of 1 btc = 200$ like back then
  19. gj on adding ssl wildcard though
  20. status update: loadstring seems to do the trick. i just forgot to put quotes around the code. even better works in combo w/ readToEnd from thatfile protection thing however, follow up question: local clientx = assert(loadstring("_M = { _COPYRIGHT = 'Copyright (C) 2004-2011 Kepler Project'} return _M"))--readToEnd('soap/luasoapclient.lua') if clientx ~= nil then outputConsole( "OK") outputConsole( clientx._COPYRIGHT ) else outputConsole( "not ok") end error on line 6: attempt to index local 'clientx' (a function value) why is this a function? the loadstring oughta return a table with just that _M value? disregard that i suck cocks clientx()._COPYRIGHT works TO CONCLUDE OUR INVESTIGATION; IF UR LOOKIN 4 a lu-alternative to require, use this: function include (file_name) -- note if theres comments in the file it wont work lolz local file,buffer,toend = fileOpen(file_name),nil,"" if (file) then while not fileIsEOF(file) do buffer = fileRead(file,500) toend = toend .. buffer end fileClose(file) end return assert(loadstring(toend)) end -- sample usage local mo = include('urmom.lua') mo()
  21. any hack/setting that allows for use of require() in server scripts? trying to local client = require "soap.client" results in also a way to omit the use is also acceptable, already tried loadstring(the file contents) but that resulted in some error about unknown character near "local" using nightly, non production envo edit: also tried loadfile and dofile "alternatives" that basically do the same as require, except they don't try to access c:\windows\ etc
  22. To get it to work in MS Notepad (and anything else), do \r\n instead of just \n
  23. What exactly goes wrong then? Is there any error in the server console? Please provide more details!
×
×
  • Create New...