-
Posts
367 -
Joined
-
Last visited
Posts posted by AJXB
-
-
29 minutes ago, SSKE said:
No problem I fix it, what I mean, I create this script, but the DENdxmsg script is from a old friend who got that script and he gave me it. Anyway Thanks for you're help!
If you actually created this script you would know that changing line 23 will solve your problem. but I highly doubt you know what you're doing here.
-
if (isTimer(g_VehicleList[source].idleTimer)) then killTimer(g_VehicleList[source].idleTimer) end
as far as I remember
-
1 hour ago, DeadthStrock said:
Client Side :-
GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(563, 204, 519, 491, "Rules and Regulation", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 29, 500, 418, "", false, GUIEditor.window[1]) button1 = guiCreateButton(18, 449, 491, 32, "I agree", false, GUIEditor.window[1]) end ) function closeButton() if source == button1 then outputChatBox("Hey") end end addEventHandler("onClientGUIClick", resourceRoot, closeButton)
Or ,
Client Side :-
GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(563, 204, 519, 491, "Rules and Regulation", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 29, 500, 418, "", false, GUIEditor.window[1]) button1 = guiCreateButton(18, 449, 491, 32, "I agree", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick", button1, closeButton) end ) function closeButton() outputChatBox("Hey") end
No, your first option is correct, not the second.
-
-
Remove line 33 to 35
P.S: Make your own scripts.
DEN? Really?
-
You mean it's 12 hours based and you want it 24 hours based?
-
If the gamemode is already sold to @chiquita it's useless to me, or someone else.
I like the effort you put into it.
-
-
-
-
18 hours ago, Simple01 said:
I'm not mad. Just being poetic with scripting.
This cracked me up lmfao, poetic? *claps*
- 2
-
-
13 hours ago, Simple01 said:
People got wrong my words. I'm talking about the mentality of programmers and scripters, because there are all kind of ways to do things but there's always a best way to choose and there's where we start to discuss about loops. The amount of loops and their type represent a scripter's way to structurize his code, and in my opinion Ipairs and Pairs can be avoided and limited just to necessary cases and these cases are very hard to be found while you're scripting from scratch so stop putting Ipairs and Pairs each 10 lines of written code.
umad?
-
Post the error and the line number, I think I know what's wrong
-
3 hours ago, John Smith said:
Numerical looping is 2 times faster than pairs, while pairs is slightly faster than ipairs.
He isn't talking about speed, he's generally saying that numerical loops are what an "expert" coder should be using..
The correct answer to this is "It depends on your table, and what data do you need", you can't talk in general about this.
-
"Look
There's 3 kind of loops
Ipairs - Pairs - Numerical
If you're smart guy and you can think off a good structre.
You will use rarely Pairs.
And never or almost never Ipairs.
If you're a medium guy on scripting.
You will use Pairs most of the times, making use of numerical some times and ipairs also some times.
And in my opinion the worst one, using Ipairs most of the times, pairs some times and numerical almost never."Some ignorant who's acting like a professional coder is saying this. please, give me your opinion on what he's saying.
-
-
I think this is a very good idea and it should be added.
1. Because I said so..
2. read #1
-
13 hours ago, CodyL said:
Did not notice that,
Open = false function toggleFRWindow(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectinACL("user."..accName, "Admin") then if Open then Open = false showCursor(thePlayer,false) triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,false) colorPicker.closeSelect() else Open = true showCursor(thePlayer,true) triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,true) end end end addCommandHandler('fr', toggleFRWindow)
Client -
function OpenOrCloseClient(Open) if Open then showAllWindows() else hideAllWindows() colorPicker.closeSelect() end end addEvent( "OpenOrClose", true ) addEventHandler( "OpenOrClose", localPlayer, OpenOrCloseClient )
Not tested, was just a quick thing I made.
Mother of indentation.. press "Tab" once a while.
- 2
-
You can't, unless you have a supercomputer and a couple of years.
- 1
-
On 10/22/2014 at 9:44 PM, XeoN- said:
Nothing special.
Stfu.
On-topic: I'm surprised anyone spent time doing this, but I really like it, great work
-
You have to create a directory called "resources"
The path should be: multitheftauto_linux_x64-1.5.3\mods\deathmatch\resources
-
Bloody hell..
Alright, as far as I remember (I don't have the source code for this), I didn't use guiGridListGetItemText, but I used guiGridListGetSeleceted, I didn't use GetItemText because I used an index for the selected row, that's what I remember, unfortunately, there is not way to decompile the code to find out exactly what I've done.
- 1
-
Someone is trying to clone my resource, huh
Help..
in Scripting
Posted
Look for it in the Wiki, I think you'll find your way around.