-
Posts
1,105 -
Joined
-
Last visited
Everything posted by Aibo
-
i do, you don't. because you can't script for shit. just wait for someone to figure that out for you, i'm not doing it. just passing by.
-
you didnt make this. all your recents post revolve around the (slightly changed) same piece of code. and how (and why) are you supposed to damage the player that is already wasted? anyway: https://wiki.multitheftauto.com/wiki/CreateExplosion see client-side parameter for damage.
-
this is not a scripting section. and i doubt Benxamix2 knows himself what is this suggestion for ("some engine" for "some functions"? "Creating images from simple strings or another arguments" - what?)
-
what is the purpose of this? what's wrong with addCommandHandler? anyway, your problem is stated in that error message. it means that your server part either not running or stops somewhere before the event is added.
-
what? you can make a captcha pretty easily with dx functions.
-
the function you should learn, dear sir, is called "the basics of scripting".
-
first you should learn to close you functions and statements.
-
1. you forgot 2 ends 2. dx functions must be called every frame to be displayed (see onClientRender) 3. i dont even know what to say.
-
y u no post official R* trailer upload? and not this SD reuploaded crap.
-
1. you create buttons in clearButtonLogin/clearButtonRegister but check for source in loginClearButton/registerClearButton, which are totally different names. 2. guiGetText() probably returns an empty string (not nil/false) in case of empty edit field. try "if #guiGetText(yourEditboxName) > 0 then"
-
there's a typo in event name: client script: "server_DoLogin" server script (@addEventHandler): "serer_DoLogin"
-
tried /debugscript 3?
-
where is the button itself? and what is supposed to happen? where's the server part? ps: -- instead of if a then if b then if c then end end end -- you can do: if a and b and c then end --also you can use variables instead of redundant function calls: getResourceRootElement(getThisResource()) == resourceRoot -- can be replaced by resourceRoot predefined variable. getLocalPlayer() == localPlayer -- can be replaced by localPlayer predefined variable. getRootElement() == root -- can be replaced by root predefined variable.
-
there was always competition. http://en.wikipedia.org/wiki/Video_game_console
-
2nd generation? when where you born? mentioned consoles are like 5th or 6th generation.
-
http://code.google.com/p/mtasa-blue/source/list
-
iirc cancelEvent() does nothing onClientGUIChanged. it doesnt prevent the editbox value from changing. moreover, editbox already has it's value changed when it's called. local edit = guiCreateEdit(0, 0, 1, 0.1, "", true) -- your editbox addEventHandler("onClientGUIChanged", edit, function() guiSetText(source, guiGetText(source):gsub("[^0-9]","")) end)
-
viewtopic.php?f=91&t=36800#p379106 read this again.
-
this is random code. xxx() should have arguments pname should be local getPlayerName() get whose name? thePlayer isnt defined anywhere getPlayerName is a function, you cant concatenate a function
-
myFont is a variable with DX font element. so type it in as a variable, not as a string.
-
1. you must get account inside the militaryMarkerHit function 2. "hitElement" is the element that hit the marker. "player" is probably nil. 3. you should check if element is a player and he has an account local militaryMarker = createMarker(1552.33, -1605.37, 12.5, 'cylinder', 2.0, 0, 0, 255, 150 ) function militaryMarkerHit(hitElement, matchingDimension) if getElementType(hitElement) == "player" then local account = getAccountName(getPlayerAccount(hitElement)) if account and isObjectInACLGroup("user." .. account, aclGetGroup("Military")) then setElementModel(hitElement, 286) giveWeapon(hitElement, 31, 80000) outputChatBox("You are now working as military", hitElement, 0, 255, 0, false) else outputChatBox("You must be in the military group to use this command!", hitElement, 255, 0, 0, false) end end end addEventHandler("onMarkerHit", militaryMarker, militaryMarkerHit)
-
people gettin lazier every day.
-
or store your data in your own SQL table and use SQL select/order by/limit queries. and maybe there's a way to access internal.db where account data is stored, i'm not sure nowadays. but i'm pretty sure getting ALL accounts (unless there are like 10 in total) and sorting them in Lua is not the best way.
