
Gamesnert
MTA Contributors-
Posts
2,035 -
Joined
-
Last visited
Everything posted by Gamesnert
-
Scar and Vivalavido, both guesses are wrong. I'll show the line which shows it. If there's a bad argument in createVehicle, ofcourse then no vehicle is created. Simple as that. So ehm, I see you're using parameters "car, x, y, z". Are you filling in ALL of them? And are you aware of car has to be a NUMBER value? Not a name. So what command are you using? Could help us a lot helping you.
-
I"m sorry. integrate that files in mta? I'd advice you to click the links and read the text before asking those things. You can ask everything, but you should really be less dependant on others... (note that this is me who has just had a normal day once again in life, instead of busy stress days. I can also sometimes react VEEEERY pissed on these kind of questions...)
-
Yes, i use that function, do you know how can fix it ? You can temporarily fix it by using XML or SQL. But overall, it's better to use setAccountData. (if it works. If it doesn't, like in this case, use something else or nothing instead)
-
I'd suggest adding them to the meta.xml and starting the resource.
-
Wait a moment... He gets suspicious from 2.75 or higher? Isn't 1.0 almost the max speed of an Infernus? =/ Another point that might be important to note: When you're entering a vehicle, the vehicle's speed is about 0. And then you execute "/speeding" which checks for how fast it's going. Well I guess it's not going 3 times as fast as the Infernus yet while getting in... Also, "/speeding" doesn't seem to stop triggering when you get out of a vehicle. But that's not necessary in this state yet anyway I guess.
-
Ye, what IS wrong with it? It might be helpful to give us some more info... How the hell are we supposed to guess the errors, warnings or the thing that doesn't work...
-
Can you make or somebody make a picture for my...for under the mini map please? ..with the text: http://www.freeroamserver.tk (sorry about the reclame ) Kind Regards, SpeeddeviL[NL] Hmm, i think so that 'reclame' is dutch. And you are dutch I already translated it for him. But I don't see why you're making a seprerate post for it...
-
Well, actually, he might try to get a car of thePlayer nil. He defines theVehicle later on again. (line 4) But I don't know if he changed it to getLocalPlayer(). Still though, jkub it's better if you open the debugwindow and tell us if there's an errorspam.
-
Maybe it gets speed of vehicle that doesn't exist (when player is on foot)? You need to make the script check if the vehicle exists. Besides that, it might be an idea to do it in an 100-500 ms timer. I don't think you need to check this about 30-50 times per second...
-
I suggest you to go to the correct board. https://forum.multitheftauto.com/viewforum.php?f=45
-
Wait... Correct me if I'm wrong, but it seems like you're using a client-side event on a server-side script? Make this function client-side. If you don't know how to, the link I just gave should help you out. Note that if you use outputChatBox() client-side, only the player himself will get to see the message. If you want to make the message appear to more than 1 person, trigger an server-side event with triggerServerEvent. (see example)
-
Ehm... Ever wondered why there is a "noiseblip.lua" in the Stealth gamemode zip/folder?
-
That should be a long time ago, because for as far as I know, it always worked like this... =/ This is quite annoying sometimes though, and would be nice if it'd be fixed. But still, it isn't a complete disaster if it wouldn't.
-
Just start your server, and type: *=unless your map resource has another name
-
I think I can. These lines are from the LUA Wiki, and represent the parameters for insert and remove... So actually, you're doing... table.insert ( zombies, #zombies+1[number, table value], source[ped, table value] ) table.remove ( zombies, source[ped, table index] ) As you can see, the ped is first used as a value, since position is automatically set to a number. And then you try to remove it, with the ped as a position. But the position is a number, so it can't find the entry. Knowing this, it's easier to find out what the prob is. Because you don't have a zombies[source]. I think it would be better to just do... function onStreamIn ( ) local tipo = getElementType ( source ) if tipo == "ped" then zombies[source]=true --Setting source as index, it would be pointless to also set it as value outputConsole ( "STACK PUSH!" ) end end function onStreamOut ( ) local tipo = getElementType ( source ) if tipo == "ped" then zombies[source]=nil outputConsole ( "STACK POP!" ) end end addEventHandler( "onClientElementStreamIn", getRootElement(), onStreamIn ) addEventHandler( "onClientElementStreamOut", getRootElement(), onStreamOut ) And then when retrieving... for k,v in pairs(zombies) do whateveryouwannadowithemisuptoyouandtotallynotmydicision() end Keep in mind here that you should use k to return the ped, v will only return true! Also, it doesn't have numbered indexes, so that's why I used pairs instead of ipairs. Hope this helps, Gamesnert.
-
Check for spelling errors, it doesn't check if the event exists. Also, make the event trigger on getRootElement() or add this handler for every ped on the server. Not something like getLocalPlayer(). (if this is the case)
-
http://www.whatismyip.com/
-
g_res_root = getResourceRootElement ( getThisResource () ) addEventHandler ( "onClientResourceStart", g_res_root, function () x, y = guiGetScreenSize () p_wnd = guiCreateWindow ( x-280, y-600, 243, 164, "test", false ) close () end ) function close ( ) local currentAlpha = guiGetAlpha ( p_wnd ) local newAlpha = currentAlpha - 4 if newAlpha < 0 then newAlpha = 0 end guiSetAlpha ( p_wnd, newAlpha ) if newAlpha ~= 0 then setTimer ( close, 50, 1, p_wnd ) end end Try this? You put open in the timer while there's no open.
-
setTimer(guiSetAlpha,100,10,theGUI,guiGetAlpha(theGUI)/255+0.1) (although it seems weird with guiGetAlpha returning between 0 and 255, while guiSetAlpha only seem to work between 0 and 1... ) Or use the example HERE.
-
I don't know if you tried this one?
-
No. I want to say that for most people, it's irrelevant anyway and the ones for who it IS relevant, they mostly already know.
-
Works fine here. Maybe you should install the nightly again? Or get rid of Vista... Any errors occured during install maybe?
-
Most people aren't even on the nightlies. And the ones that are, somewhat all know how to.
-
It's simple. This isn't MTA's issue, but GTA SA's. Therefore it'll be difficult to solve. If you want to alt+tab, just disconnect and press alt+tab. (not sure if this also is in DP2, but it is in the nightlies)
-
Because you're not playing on your own. If you disable it, and others don't, you have an unfair advantage. Which can be concidered as cheating. I also think it's hugely annoying sometimes, but you just need to learn to live with it. By the way, isn't this haziness only present during certain weather types? =/