Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. hmm, 198 is max for infernus for speedx speedometer. im sticking with this way of counting it in all my scripts
  2. https://community.multitheftauto.com/?p=resources ... ils&id=729 https://community.multitheftauto.com/?p=resources ... ils&id=730
  3. http://lmgtfy.com/?q=lua+manual&l=1
  4. use [lua] not and.. read it: https://wiki.multitheftauto.com/wiki/EngineLoadDFF wiki says everything about your problem
  5. https://forum.multitheftauto.com/viewtop ... 91&t=26541
  6. read my post again.. part of your code: local players = getPlayersInTeam ( teamAdmins ) for playerKey, playerValue in ipairs ( players ) do setVehicleColor ( players, 0, 0, 0, 0 ) end "playerValue" is your player!! "players" is array of players!! so in that loop (from "for" to "end") you have to 1. get player vehicle 2. set vehicle color so again:
  7. put some outputDebugString every few lines (after new function, "if", etc) and try to find your bug
  8. before you'll copy bravo351's script copy that: (he messed on quote character) bankrob = {} function rob (thePlayer, key, keystate) if (key == "x") and (keystate == "down") then outputChatBox ("***All Police To The Bank "..getPlayerName ( thePlayer ).. " Is Robbing The Bank*** ", getRootElement(), 255, 0, 0, false) setPlayerWantedLevel ( thePlayer, 4 ) bankrob = setTimer( robb, 100000, 1 ) end end function robb (thePlayer) if (source ~= robmarker) then return else givePlayerMoney ( thePlayer, math.random(50000, 100000) ) setPlayerWantedLevel ( thePlayer, 6 ) end end
  9. this script is a little mess.. one timer is enough.. and this: bindKey ( "forwards", "down", funcInput ) is incorrect.. "forwards" is not a key..
  10. Nich, nice joke about local server, but default port is 22003 not 23000
  11. https://forum.multitheftauto.com/viewtop ... 04&t=27537 2nd problem
  12. https://forum.multitheftauto.com/viewtop ... 07&start=0 same problem no solution
  13. is your teamAdmins set before? and you have to loop through all players, not use array as player in getPedOccupiedVehicle like for key,val in ipairs(players) do -- do your loop here, -- val = player end read about arrays and loops in lua
  14. COOKIE2 here? ... This ISN'T YOUR SCRIPT! https://forum.multitheftauto.com/viewtop ... 39#p309739
  15. what? how this can fix it? one guy will be seeing it all right (syncer) other - mess
  16. but you didnt make it by yourself if so - there will be no problem to make "points" too okay, im silent now
  17. you should post whole error and code.. anyway: https://forum.multitheftauto.com/viewtop ... oc#p309354 here i wrote how to loop through mysql results.. just remove (you can leave it too) the loop, and do it once.. it wont throw error if you do it like that.. and: its very good idea to script in english.. (funcions names, database columns etc) this is just good habit, but also can help others understanding your code if you need help or if you gonna release it in the future..
  18. "• Place items and save them on the map (Smal mapeditor for Members! ) (NOT DONE)" i love this one and its good that you use MySQL
  19. i think its more GTA than MTA problem.. so..
  20. now make for him saving that data, and loading, and buying things etcetcetc (i tihnk he will get these ideas soon, so prepare for another topic)
  21. first thing - i dont think that driving trailers is safe .. so better do it with towtrucks? and remember -> trailers have veeeryyyy baaad sync! for others players these trailers will be .. one big mess, detaching and flying everywhere, and attaching again, and hitting other objects etc etc.. but probably you know that already
  22. kevin, are you sure you have the newest version of zombie script? BladeArtist, he knows NOTHING about lua, so asking these questions are pointless ;/ kevin, be sure to set this serverside.. and if something is not working, try to DEBUG it. how to debug: login as admin (in-game) and in console type: "debugscript 3" debug window will appear on the bottom of screen.. write here any errors you can find in debug window
  23. i think no.. mta sometimes crashes randomly.. if you use mods there is bigger chance to crash, so reinstall gta if you have any mods and dont any mods, so it should crash less often
  24. sry, i have to say that (OFF-TOPIC): .NET is ugly thing. Usually ppl are forced to download .NET libraries to run 300KB exe (like this IP finder). And .NET (from version 2.0, where 3.0 is my personal winner) is causing problems on computers (at least on XP, various versions from SP1-SP3, 32 and 64bit, legal or illegal versions). Examples: My friend computer (clean, just after first system install after buy) stopped shutting down after installing 2.0 My old PC had problems with audio after installing 2.0, or 2.5 [cant remember] My laptop was thround random "memory can't be 'read'/'save'" errors, won't allowing to run GTA for example, wont allowing to use MSN (ive installed that sh*t, 3.0 version, becouse MSN was needing that), and after fresh install of windows i wasnt able to do anything on it.. thats just few examples.. thats why i said to him not to use .net
×
×
  • Create New...