Anderl
Members-
Posts
2,266 -
Joined
-
Last visited
Everything posted by Anderl
-
There are many C++ IDEs such as Visual Studio, CodeBlocks, DevC++, etc. You can download them from here: - Visual Studio 2012 Express: http://www.microsoft.com/visualstudio/e ... 12-express - Visual Studio 2010 Express: http://go.microsoft.com/?linkid=9709949 - CodeBlocks: http://www.codeblocks.org/downloads/26 - DevC++: http://www.bloodshed.net/download.html Note that I only gave you Visual Studio Express versions because they're the free ones (not sure about 2012 version). If you want other versions (Professional, Ultimate, etc.) you'll have to buy them (not really, but that's not legal).
-
Why is your file with XML extension?
-
No problem
-
Your code does not make sense, you're trying to convert a timer to a number.
-
I believe it is one of these: "smoke5", "smoke4", "smokeII_3", "smoke". You can find them in "effectsPC.txd".
-
removeWorldModel is for removing objects from the world. Learn HLSL (or you can simply follow the example shaders in the wiki) and use dxCreateShader, dxShaderSetValue and engineApplyShaderToWorldTexture.
-
I never used it either. But if that's a race event, you need to add it with addEvent. EDIT: Nevermind, I saw you're using addEvent already.
-
If you mean the party in Kim's mansion, yes, I did. He posted it on his facebook account.
-
function warphigh(checkpoint, time) local x, y, z = getElementPosition (source) setElementPosition (source, x, y, z+20) setPlayerRotation (source, getPlayerRotation (source)) end addEvent('onPlayerReachCheckpoint') addEventHandler('onPlayerReachCheckpoint', getRootElement(), warphigh)-- NO >() maybe getRootElement() must be root, but I am not sure... function warphigh(checkpoint, time) local x, y, z = getElementPosition (source) setElementPosition (source, x, y, z+20) setPlayerRotation (source, getPlayerRotation (source)) end addEvent('onPlayerReachCheckpoint') addEventHandler('onPlayerReachCheckpoint', root, warphigh)-- NO >() You don't necessarely need to use 'root' instead of 'getRootElement' function, they're both the same.
-
You might be able to set smoke transparent with shaders.
-
MegaUpload back :OOO ? The new Mega (it's now Mega, not Megaupload) is up since 19th January 2013. Kim Dotcom wanted to open the new website one year after Megaupload got shutdown by FBI. You can access it here: www.mega.co.nz
-
You can give him console and admin rights, he'll be able to run almost any command of the console.
-
No.. That won't work properly. Use bindKey and getTickCount: local ticks = {} function BindKeyToPlayer() if ( eventName == "onPlayerJoin" ) then bindKey ( source, "lctrl", "both", Loeschen ); else for index, value in ipairs ( getElementsByType "player" ) do bindKey ( value, "lctrl", "both", Loeschen ); end end end addEventHandler ( "onPlayerJoin", root, BindKeyToPlayer ); addEventHandler ( "onResourceStart", root, BindKeyToPlayer ); function Loeschen ( _player, _key, _state ) if ( _state == "up" ) then if ( ticks[_player] ) then local newTick = getTickCount(); if ( ( ticks[_player] - newTick ) < 5000 ) then ticks[_player] = false; end end elseif ( _state == "down" ) then ticks[_player] = getTickCount(); while ( true ) do local newTick = getTickCount(); if ( ( ticks[_player] - newTick ) == 5000 ) then --put your code here break end end end end I'm not sure if there is any error in my code, I didn't debug it because I don't have MTA San Andreas installed.
-
NO, simply no. You export a function to use it in multiple resources. A function created in a server file, as long as not declared as a local variable, can be called from other server side files in the same resource. What you can do is create a file that stores all common functions (I mean, that has function that can both be declared in server and client side, just like that function you posted). Then, add the file to the meta as client and server.
-
yes get when a player presses down the key. then output to chat that he needs to hold the key for 5seconds. after that, setTimer for 5 seconds, and if the player lets go off the key before timer runs out, cancel the timer and output it to the player Still wondering why would you use timers for that..
-
As far as I could see, that only retrieves the page's HTML code and writes it to a memo box.
-
Depends on what you mean, you can't copy the whole website (you can try to do some HTML/PHP/CSS interpreter for the basic things, but it won't be easy and you'll not be able to load Flash files).
-
You can get data from websites, but you can't make a browser in-game.
-
It does, and you can find it with lil search on Google.
-
It's Metro-based, of course it's all squares.
-
I don't think it would be needed to delete these indexes with nil value, so it is easier. Though, if it's for some reason needed, both ways would end up doing the same, yes.
-
He can later remove indexes with boolean value using table.remove, as long as he knows the max. of indexes in the array.
-
An easier way would be to instead of using table.remove, just set index's value to false. You would not need that much code this way.
