-
Posts
304 -
Joined
-
Last visited
Everything posted by FatalTerror
-
Why you put tostring(money) ? It's int no? function checkMoney(thePlayer, command) local money = getPlayerMoney(thePlayer) if (money > 1000) then outputChatBox("You are rich: " .. tonumber(money), thePlayer) else outputChatBox("Poor guy...", thePlayer) end end addCommandHandler("checkMoney", checkMoney) And it's on server side. Good Luck
-
* MoveLive : Cheap, Stable and Safe hosting!
FatalTerror replied to x86's topic in Hosting solutions
I want a 32 slots server for 5€ in your host. I pay 8€ I hope it will be good host otherwise, i kick you mom. And why it's on german ? not in english? -
I'm waiting my activation mail too.
-
Hi, Server Name: TG.FFS.DTR.AMG.Fuck all Server IP: 79.180.170.128 Server Port: 22003 Date: 13/05/2012 at 19:50 Me, trying to connect to this server.
-
Hi, i'm late? JR10, use require function. It's the same thing than Include but it's better When you include another code in the PHP file than the SDK, put the include line in last. Like that: <?php require "../test.php"; require "../mta_sdk.php"; mta::doReturn(true); ?> The true is the same true than on MTA, you don't must put it in string.
-
MTA Paint Hi community, I'm back on scripting and for my come back, i've made an small script for draw what you want. You know Paint ? Yes... Paint from Windows. It's now avaliable on MTA. Now... i'm going finish my other scripts. How it work ? Simple... The script save the position of the cursor on a table when you move it. When you press to draw, it "allow" the clientRender to draw it. It use dxDrawLine() and links every points of the table. Release 1.0.0: Avaliable to draw & create new document Future release Allow to erase line Allow to open, save & share document Allow to choice the color Allow to choice draw size Screens
-
Hi, I create a script to generate a push script. I've started that, create the marker etc. The purpose of the script is simple. I have one point 'start', where is the marker and I have one other point 'end'. The point 'end' is where the vehicle will fall. I asked for help a friend, he told me we had to use the vectors : shock: You have an idea how I could do it? Thanks, FatalTerror
-
The MYSQL is just for store informations. You can use too Text file, XML file, etc... For a player list per example. You create a table with the LUA with players name like that function getPlayersName() local playerslist = {} for i,p in ipairs">ipairs (getElementsByType("player")) do local thep = string.gsub(getPlayerName(p), "#%x%x%x%x%x%x", "") table.insert(playerslist,tostring">tostring">tostring(thep)) end return playerslist end (Don't copy , the forum change things ) Now you have a table of all members, you just being send this table via CallRemote For the MySQL table, you must have a table contain 2 column. ID - Player When the script will receive the table contain users He will erase the table and do a loop and add into the table an id(auto_increment) and the player name. Example: // Vide la table $sql = 'DELETE FROM server_players'; mysql_query($sql); $x = 0; $start = 0; while($x <= $players) { $start = $start+1; if(isset($playerlist[$start])){ $sql = 'INSERT INTO server_players VALUES("", "'.$playerlist[$start].'", "Guest", "Guest")'; mysql_query($sql); } $x++; } You can see an example in my team website: http://www.amg-mta.net Good luck.
-
Bored map. The hunter is very slow...
-
Hi, I want know how i can do for get the letter of what the user has press. Per example, when he press the touch 'e', it show a the screen the letter 'e'. That isn't a problem, i can do it with bindKey. BUT NOW If i write 'é'... how i can get this caracter? Thanks, FataLTerror
-
Woaw n'essayez pas de parler français quand vous savez pas bande de noob sans vie
-
I can do it for 10€ ^^' Try to use that outputChatBox("#FF0000[Join]#FFFFFF "..string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "").." has joined the game", getRootElement(), 255, 255,255, true)
-
[OFFER] CrankedServers - semi-dedicated gameservers
FatalTerror replied to FFS-Racing's topic in Hosting solutions
I think you must add an register and management of user account to manage multiple servers, manage payments etc. ... You should also add an SSL certificate, because when i enter in your website i'm not trust. Otherwise, the price are not very expencive it's nice. Good luck. FatalTerror -
Well, if you could talk about the table index with string caracters Like that: table["troll"] And that table.troll Otherwise, very well
-
Vocês sao verdadeiramente burros né ?
-
What is the problem ? Create functions, you will be lost in your code
-
Nyan cat war
-
le envito amigo q quiere conoserte
-
Subliminal text
-
Want sex ? Send me a pm Nice map
-
MySQL and SQLite are databases... SQL is better for that