Jump to content

Dealman

Members
  • Posts

    1,421
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dealman

  1. Does anyone know where the code for this command is located? I'd like to make some fixes to it which are bothering me... Would be greatly appreciated! Have looked around but can't find it anywhere.
  2. So my friend is trying to get his MTA: SA to work but it's not going too well... Whenever he starts MTA he is met by this; He've tried compatibility mode(He's on W7 64-Bit), changing the resolution for both the game and desktop and pretty much all there is to try - including a full re-install of both the game and MTA. We even tried to compare our Registry to one another to see if anything was missing but it looked alright. Any ideas of what's going on? Tried to search for a solution but found no-one with a similar issue...
  3. Straight after I try to run the setup, yes. I picked the default location for MTA San Andreas, I have both the Client, Server as well as SDK installed.
  4. I'd love to give this a try and see if it speed things up for me, however I can't seem to install it. Every time I try to run the Setup I'm met by an Error saying that the MTA: San Andreas directory could not be found. It does actually exist, and it's located at C:/Program Files(x86)/MTA San Andreas 1.3 but the Setup doesn't seem to be able to find it. I've already tried to run it as Administrator as well as move the setup into the MTA folder itself but nothing worked. I searched this Thread but couldn't see anyone with a similar problem. Operating system is Windows 7 64-Bit. Any help to get this working would be greatly appreciated!
  5. Okay managed to get it to work! Thanks a lot Solidsnake Now to get some sleep and then to tackle some bigger challenges! Edit: Managed to get it to Stream the music for all clients, this is doing great so far! However, it seems like when people use really long URLs, it fails to output a message in the chat. I would assume there's a limit on number of characters? Is there a way to prevent this from happeing or a kind of workaround?
  6. Something like this? Client: local streamURL = guiGetText(StreamEdit) triggerServerEvent("onStream",getLocalPlayer(),streamURL) Server: function startStream_Handler(player,streamURL) outputChatBox("#CCFF00Streamster Server: ",streamURL,getRootElement(),250,0,0,true) end addEvent("onStream",true) addEventHandler("onStream",root,playStream_Handler)
  7. No, this one is server-side. This output is triggered when a player clicks the button to start the streaming.
  8. Currently it's being defined in client.lua, I can't find a way to to have it defined server-side since guiGetText is client-side only.
  9. It will stream for all the clients currently in the server, this is not what I need help with at the moment though. Since triggerClientEvent and triggerServerEvent really confuses me, I thought I'd start small first and start with getting it to output the messages first, and then move on to the somewhat bigger challenge of having events to start and stop the stream for clients and so on and so forth. Maybe it'll be easier to understand what I'm trying to do if I explain how the GUI works So I have this EditBox where the player can enter a URL, this URL is then streamed for all clients when a button in the GUI is clicked, this should also output a message to notify everyone who is streaming and what. Currently, in the client-side of things I am using guiGetText to fetch the URL inside the EditBox and then Stream it using playSound. The problem when I'm trying to output the message through the server-side is that I can't find a way to concatenate that URL. For example; outputChatBox("#CCFF00Streamster Server: "..streamURL,getRootElement(),250,0,0,true) That is what I've been playing around with, trying various methods but I always end up with an concatenate error. By the searching I've done so far, it would seem you can't concatenate text from another script, even though it's in the same folder - which I guess makes sense. So I'm trying to find another way to achieve this. Hopefully this made things a bit more clear, sorry about that
  10. Dealman

    Voice

    I'll go ahead and assume you're using Google Translate. Am I right in that you're asking for a way to implement Voice Chat into MTA? Similar to that of how it works in DayZ? If that is the case, you'll want to read this; Voice Chat.
  11. I'm working on a GUI for streaming music and for the most part I finally have the GUI working with most of it's features, at the moment, however, it is only working client-side. I am currently in the process of making it server-side so that the stream is played for all the clients currently in the server. And I've kind of run into a halt, I'm trying to output a message when a button in the GUI is clicked. I have it working to some extent(Message is successfuly output, but I can't concatenate any text.), but it's not really of any use as of now. What I want it to do is that when the button is clicked, the server will output a message, for example: is now Streaming: . I already have this working on the client-side version but I can't get it to work for the server. As I'm using a GUI, I can't use any nifty functions like guiGetText, since it's client-only. And I can't come up with a way to concatenate text from the client-side script of my resource. I've tried a few methods but I always end up with the Error "Attempt to concatenate global 'NameHere' ". I've searched around a bit regarding this but I can't find anything to help me. I believe I need to use export function but I can't figure out how to properly use it. I tried to be as descriptive as I can, but it's really hard to describe the issue at hand as well as what I want to achieve in detail when I don't even have any experience in programming... I would apprecaite any kind of help!
  12. Yeah, I'm sure. Thing is, even if I tell it to make a specific action when a specific source(In this case, a Button) is clicked, it doesn't really care. Sure, it performs the thing I want it to do, but if I click any other element inside the main GUI window, it will perform the same action. In other words, I could move the volume scroller to 50% and then left-click on the main window, and it will set the volume... Edit: Think I managed to find a way to fix the above mentioned problem, I will edit this reply soon. Edit2: Here's the solution I came up with: Now I need to find a way to make this server-side. So far I have no idea how to achieve this, I've looked at triggerClientEvent and triggerServerEvent but they only leave me confused. How would I have the Server fetch the text inside the EditBox for a specific client, and then stream that text for all clients?
  13. Hello, I've been working on a GUI for streaming music for a while now and so far it's turning out fairly well. I have no experience programming with any language whatsoever so all the progress I have made so far has been entirely through trial and error. Currently with what I've got, I'm using ScrollBars to set the Volume and Playback Rate, and it's only supposed to set the volume and Playback Rate when their respective Button is clicked. I'm using onClientGUIClick as an EventHandler and thus, whenever I click any element it changes the Playback Rate and/or Volume. For example, I leave the Volume ScrollBar at 100% and the Playback Rate at 50%, if I click on the main window it will get the information from the scrollbars and trigger it. I lack the logic of a programmer so I can't really figure out a way to prevent this from happening. Currently this is the code I'm using for the Playback, it's pretty much identical for Volume: Another question I'd love answered would be how to make the sound play for other Clients as well, I'm well aware that I would have to use triggerClientEvent for this but it leaves me utterly confused as I'm using a Client-Side GUI(More specifically an EditBox) to fetch the URL to Stream as well to stream it when a Button is clicked. I know I'm new to this, so I'm sorry if I'm of nuisance but I'm really looking forward to finishing this eventually and as such I would appreciate any kind of help greatly!
×
×
  • Create New...