
Lordy
Members-
Posts
290 -
Joined
-
Last visited
Everything posted by Lordy
-
No, we don't HAVE to do anything. But I guess this would be a place to start for you: http://development.mtasa.com/index.php? ... troduction
-
From time I helped to test it, I can only say thumbs up . It's something really funny to have actually.
-
No, that's an introduction tutorial for scripting gui.
-
Plus one guide for asking questions.. I didn't really think you'd believe when I said we obviously know the answer if you had only said that you have problems... But yeh. this is the guide - http://www.catb.org/~esr/faqs/smart-que ... tml#before
-
Well what do you think? Is there a separate function for every colour or a more generic one which has the colours as arguments?
-
Well in that case we obviously know the solution..
-
Well you could disable warping if one is within that no-spawn area..
-
You can disable warping by modifying the freeroam resource, just comment out the warping parts of it.. (You need to find them first though.)
-
And what would your example do? Just another function defined, nothing else. Please don't give some bullshit advice if you don't know what you are doing. BulletTime, you can create a colRectangle in the coordinates of the garage and then isElementWithinColShape. local colshape = createColRectangle(x, y, width, depth) -- and later if isElementWithInColShape(theVehicle, colshape) then -- blah end Note that you can't use this just out of the box, you need to define the x, y, width, height, and vehicle and all the other things too, but this is just something that it should look like.
-
ffs, you are making my knee hurt.. Have you even learned ANY of lua's syntax by now?
-
Well it's not on your PC if you didn't host it...
-
Or better yet, you could start using nightlys, because that's kind of the most meaningful thing to do for scripters and '"scripters".
-
Well then you should contact the admins/scripters of that server, because we can't do anything about some other scripts. Btw, (0,0,0) is in Blueberry area so there can be a bug about setting some false coordinates
-
Maybe the source is a nil value then
-
Measure.. Calculate.. Whatever. Next thing you'll ask is where to buy some toilet paper...
-
relative coordinates
-
That one is still true.
-
In that case forget all of this and don't bother us.
-
They just added a gui image on top of the old radar. They have not changed the radar.
-
Haven't stated otherwise. For example 1000 = because 1 * 2^3 + 0 * 2^2 + 0 * 2^1 + 0 * 2^0 = 8 1000 basically means [true false false false], so only 2^3 is added to 0 and no other 2^n, because all other are false Similarly 1001 ([true false false true]) means that you add 2^3 and 2^0 and no others. Which will make it 9. So binary is a boolean system. I know I explained it pretty rubbishly, but that's related to my relatively low English skills not relatively low knowledge
-
This is actually wrong. 1 and 0 are numbers and will always return true. It's not C based language. Lua is different language and 1 and 0 don't count as boolean values. nil and false will always be false, everything else is true, even 0. Yes I'm aware of that. I just wanted to imply about the concept of a boolean not how it's done in lua. That it's a boolean value in like in binary(1 true, 0 false). I know that they are just numbers in lua. What I didn't think about though is that he has probably no idea what binary is
-
And another one who has not yet seen the debugging tutorial on wiki (it has an example of outputChatbox and outputChatBox)
-
You still did nothing about the source. At joinhandler () it may be, because the addEventHandler() passes source argument. But at rightCharacterSelection() it's a nil value. Look for bindKey documentation in wiki to see how you can retrieve the player who pressed the button.
-
PLEASE READ WIKI! Bool is not a string, it's a boolean value, either 1 or 0, true or false. You can't use onMarkerHit because it's server side event. While your code is client side. Now I'm not going to waste more of my time if you continue ignoring everything we try to say..