Jump to content

Fabio(GNR)

Members
  • Posts

    210
  • Joined

  • Last visited

Everything posted by Fabio(GNR)

  1. I have MTA 1.3, installed fresh. When i run MTA server.exe located at MTA/server, it opens and auto-closes again. Windows 7, 64 bit. =========================================================== = Multi Theft Auto: San Andreas v1.3 =========================================================== = Server name : Default MTA Server = Server IP address: = Server port : 22003 = = Log file : .. 1.3/server/mods/deathmatch/logs/server.log = Maximum players : 32 = HTTP port : 22005 = Voice Chat : Disabled =========================================================== [2012-03-21 17:39:02] File 'settings.xml' not present, creating new node. [2012-03-21 17:39:12] Resources: 186 loaded, 0 failed [2012-03-21 17:39:12] Querying game-monitor.com master server... unavailable! [2012-03-21 17:39:13] Querying backup master server... success! [2012-03-21 17:39:13] Starting resources... [2012-03-21 17:39:13] INFO: Admin added 409 missing rights [2012-03-21 17:39:14] Server started and is ready to accept connections! [2012-03-21 17:39:14] Type 'help' for a list of commands. After that last help message it closes. No error message or anything. Only the Windows "Stopped Working" message appears. EDIT: More info from windows event viewer - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> - <System> <Provider Name="Application Error" /> <EventID Qualifiers="0">1000</EventID> <Level>2</Level> <Task>100</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2012-03-21T17:27:01.000000000Z" /> <EventRecordID>5993611</EventRecordID> <Channel>Application</Channel> <Computer>Fabio-PC</Computer> <Security /> </System> - <EventData> <Data>MTA Server.exe</Data> <Data>1.3.0.3916</Data> <Data>4f6344eb</Data> <Data>unknown</Data> <Data>0.0.0.0</Data> <Data>00000000</Data> <Data>c0000005</Data> <Data>00705920</Data> <Data>2a8</Data> <Data>01cd0787cd518d40</Data> <Data>D:\Games\MTA SA 1.3\server\MTA Server.exe</Data> <Data>unknown</Data> <Data>11688d85-737b-11e1-a41b-8c89a531ee16</Data> </EventData> </Event>
  2. Nice resource. Is great for servers!
  3. Fabio(GNR)

    2 question

    Did you try what i said?
  4. Small suggestion.Let the answer be after the question ( i only saw vid btw ) using a delay or something
  5. Fabio(GNR)

    2 question

    Uhm. where do you give your jetpack to players? how can they get it? can you copy that script? You should check if they are in the col, when you give the jetpack ( with you i mean the server/script etc.)
  6. Fabio(GNR)

    2 question

    I think a timer is unfunctional, on giving jetpack you should check if the ped is in the colshape with https://wiki.multitheftauto.com/wiki/IsE ... inColShape like function givejet(source) if isElementWithinColShape(source,nameofcol) == false then giveJetPack(source) end end This is just a rough version which doesnt work but shows the concept
  7. Oh, yes i use windows. I installed 1.2 and copied the files overwriting my old server. But now im getting duplicate errors, can't find normal resources ( admin, webstats etc. ) and timelink and safestart issues.
  8. How to update? i have my old server with resources, ACL, config and all that stuff. How to update that server to 1.2? I would rather not lose any settings.
  9. To be clear, you want to create a sound in GTA world or doesnt it matter were the sound's located? If you really want to use 3D ( compare: https://wiki.multitheftauto.com/wiki/PlaySound3D , https://wiki.multitheftauto.com/wiki/PlaySound ) then create it for every player, everything you create client-side is only for the client your executing it "at". So only he/she will notice something created. Creating for everyone: trigger a client event for all players. If you reply, i'll go more detailed.
  10. I dont see setPlayerData in your script... If you want to write to account use setAccountData, writing to element is setElementData ( will be destroyed when player leaves ) EDIT: You already have setAccountData, sorry. I cant really help you with this ( my LUA is bad ) Good luck tough!
  11. Go to the MTA Wiki and search for setTimer and SetPlayerMoney ( server ) Example: richGuy = getPlayerFromName("ready") -- get your element, change ready to in-game name oldCash = getPlayerMoney(richGuy) --get your old amount of cash setTimer(setPlayerMoney, 10000, 0, richGuy,oldCash+1000) --Set a timer to setPlayerMoney(richGuy,oldcash+1000) every ten seconds ( time is in ms ) for a infinite time. -- Dunno if this is what you want but it should help you Start the resource when your in-game and it should give you 1000 every 10 seconds. Dont forget the meta.xml ( wiki )
  12. Gonna try both, thanks EDIT: SolidSnake14, Thanks it worked.
  13. Well, when i click anywere on my GUI window it activates all buttons, why? ( not sure about all ) addEventHandler ( "onClientGUIClick", Spawn_button, create_veh2 ) ( Spawn_button is created earlier )
  14. Lol just added it with edit
  15. Hello, This is a vehicle spawning resource, it feature's: * A GUI that remembers selections. * Almost every vehicle. * Fix button, destroy old vehicle button and switch between sort and category's button. * Possibility to block vehicle's from being spawned. Created by me, for my server. Go ahead and edit it if you'd like, just be sure to notice my name. Please post any bugs/ suggestions. Download at: https://community.multitheftauto.com/index.php?p= ... ls&id=2134 Karlis should be in credits too, i used his carcolor script https://community.multitheftauto.com/index.php?p= ... ils&id=621 Sorry, i forgot to ask you...
  16. Thanks I figured that out yesterday with some help of someone else but thanks for replying My resource is done you can take a a look at it if you wish: https://community.multitheftauto.com/index.php?p= ... ls&id=2134
  17. Hello, this is a request for a area creator. https://wiki.multitheftauto.com/wiki/CreateColRectangle When you want to create a col area. You have to know width, X, Y etc. Maybe it's just me, but i dont really get it. So it would be cool if someone could create a resource were you i.e have the map of SA and can "draw" a area. I think it would be very useful.
  18. Lol, pretty simple. thanks alot, didnt test it yet it should just work.
  19. My second topic today ( sorry ) Im using getvehiclemodelfromname, it should get it from a variable: a = guiGridListGetSelectedItem ( list ) id = getVehicleModelFromName ( a ) -- wrong id = getVehicleModelFromName ( tostring(a) ) -- wrong id = getVehicleModelFromName ( "tostring(a)" ) -- wrong id = getVehicleModelFromName ( "Alpha" ) -- works How to let it know it's a variable? EDIT: Found the error, now how to fix it? The error is my gridlist give's a number instead of the variable. in example: Alpha = guiGridListAddRow ( list ) guiGridListSetItemText ( list_vehicles, Alpha, vehicle_column, "Alpha", false, false ) This gives me a number, : 0. Second i created gives me a 1. How to get the variable's name? EDIT2: I used guiGridListGetSelectedItem which will give you the number. Any way to get the text in it? So from the row i selected?
  20. function create_veh ( playerSource ) v = guiGridListGetSelectedItem ( list_vehicles ) id1 = tostring(v) id2 = id1:gsub ( 'row', '') id = tonumber(id2) x, y, z = getElementPosition ( getLocalPlayer () ) showCursor ( false ) guiSetVisible ( Main_Window, false ) outputChatBox(". " .. id1 .. " ! and " .. id2 .. " !" ) createVehicle ( id, x + 2, y + 1, z + 1.5 ) triggerServerEvent ( spawn, getLocalPlayer (), id ) end I have found a alternative solution, but i would like to learn it.
  21. ( im a noob at LUA ) can you explain me what this does? And how it works? EDIT: Looked something up, it converts it right? What if i use tostring, remove "row" and then use tonumber? EDIT2: That doesnt work It should become a id of a vehicle.
  22. My code is pretty big, maybe i can help you with this info: the variable is row(NUMBER) were (NUMBER) is ofcourse a number.
  23. Almost, it isnt chat tough, let me explain better I have a gridlist in a GUI were you can select thing's it retrieves what you selected fine and call that V ( v = etc. ) Then i need to remove "row" from V, im sure it contains row, and it needs to call the V without "row" ID, that id is then passed to serverside. I got some stuff from what you just gave me: id = v:gsub ( 'row', '' ) This gives me Attempt to index global v ( a number value ) on the the line v:gsub.
×
×
  • Create New...