xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Your screen is 2D, there is no Z value, and what do you mean you don't know how to get the position?
-
They probably actually use fetchRemote for album covers.
-
I wasn't really to busy, so I went a head and re-scripted the resource, so now it does the following: - Added messages fade in/out - Replaced timers with getTickCount ( ) - Made it so the same messages can be showed more than once Download @ https://community.multitheftauto.com/index.php?p= ... ls&id=7668
-
viewforum.php?f=122 (Edit: The topic was in Spanish before he edited it)
-
That's not really what he was asking.. The variable is assigned, when the variable is assigned. I had this question to for a while but decided to put it to a test.
-
You need to define the sound element in in a variable then use destroyElement...
-
Yeah, but it still didn't work. Pretty sure it's an MTA bug.
-
The class is GuiGridlist, when you put a capital L it says a nil value is given.
-
Yeah, this is set.
-
I'm guessing that it is a bug because I'm using it in the same form as the gui label and the GUI label is creating just fine. Just asking why do you use opp scripting ? why don't you use the old scripting it's much esay and no erros , Because OOP makes it easier to read the code and most programming languages are OOP so it would only make since to write in it since I can now.
-
I'm guessing that it is a bug because I'm using it in the same form as the gui label and the GUI label is creating just fine.
-
Yes, options2 is defined and in OOP you don't have add the element as an argument, that's what grid: does. Thanks for trying to help though. what is , OOP ? and did you try this script ? https://wiki.multitheftauto.com/wiki/OOP_Introduction
-
Yes, options2 is defined and in OOP you don't have add the element as an argument, that's what grid: does. Thanks for trying to help though.
-
Hey guys. So, I'm scripting with the new OOP feature in mta 1.4 beta, but for some reason I am having issues with the GuiGridlist class. I'm using it just like any other class but it says the following: attempt to index global 'grid' (a userdata value) I'm honestly not sure if I'm doing something wrong or if it's just an MTA bug, but here's the code that I wrote: function makeGui ( ) window = GuiWindow.create(334, 104, 710, 479, "Nerd Gaming Help", false) window.setSizable = false; grid = GuiGridlist.create(356, 34, 274, 150, false, window) --guiGridListAddColumn(grid, "", 0.9) grid:addColumn ( "", 0.9 ) -- Issue here img = GuiStaticImage.create(61, 34, 272, 150, ":NGLogin/files/logo.png", false, window) info = GuiLabel.create(61, 234, 569, 186, "This is my text", false, window) info:setFont ( "default-bold-small" ) info:setHorizontalAlign ( "left", true ) showCursor ( true ) for i, v in pairs ( options2 ) do local r = grid:addRow ( ); -- Issue here grid:setItemText ( r, 1, tostring ( v [ 1 ] ), false, false ) end end
-
function onPlayerWasted ( test ) outputChatBox ( "FF0000You gonna die", source,255,255,255, true ) end addEventHandler ( "onPlayerWasted", root, onPlayerWasted )
-
Use the aclrequest command in console.
-
You can just open map editor and search for the object.
-
https://code.google.com/p/mtasa-blue/so ... ch/acl.xml
-
You mean using the mta compiler on them? https://luac.multitheftauto.com
-
Any debug errors?
-
From assuming I know what you mean, you just have to use a loop for the table and in each index of the loop use guiCreateGridListRow and guiGridListSetItemText.
-
It's a free resource he gave to the community, I wouldn't really expect it to be good.
-
It's a resource that's creating it, most likely the playerblips resource. Just stop the resource and the blips will be gone.
-
I don't really understand this part...
-
You can just use it on the server-side with getPlayerIdleTime function checkPlayers ( ) for i, p in pairs ( getElementsByType ( "player" ) ) do local t = math.floor ( getPlayerIdleTime ( p ) / 1000 ) if ( t >= 60 ) then kickPlayer ( p ) end end end checkPlayers ( ) setTimer ( checkPlayers, 3000, 0 )
