-
Posts
589 -
Joined
-
Last visited
Everything posted by mjau
-
It's not very hard, you have just to stock the stats of player in database MySQL Example: local deads = getElementData(player, "deads") local wins = getElementData(player, "wins") local player = getPlayerName(player) callRemote("http://www.yourwebsite.com/MTA/test.php", result, deads, wins, player) And you get these informations in PHP file $table = mta::getInput(); $deads= $table[0]; $wins = $table[1]; $player = $table[2]; // Send infos in MySQL $base = mysql_connect ('host', 'login', 'password'); mysql_select_db ('database', $base); $sql = 'INSERT INTO player_stats VALUES("$player", "'.$deads.'", "'.$wins.'") '; mysql_query($sql); mysql_close(); // Return true if is added mta::doReturn(true); Now, in another file, you can get the informations only using PHP & MySQL Example, you have a file with stats of every players have played in your server <?php $base = mysql_connect ('host', 'login', 'password'); mysql_select_db ('database', $base); $sql = 'SELECT * FROM player_stats'; $req = mysql_query($sql); while($data = mysql_fetch_array($req)){ $playername = $data['name']; $deads = $data['deads']; $wins = $data['wins']; echo "<b>$playername</b><br /> Wins: $wins<br /> Deads: $deads<br />"; } mysql_close(); ?> K so if i want to fill an html file with that how ? im a noob at PHP...
-
trigger it with a timer to delay it a bit...
-
http://pixelterror.ru/up/LighterBlack.zip
-
Atleast tell me the few scripts u said u needed because noone will create a RP gamemode for you for free
-
ok so if i want to send some stats from my script like death count i make a variable and uses that in callremote instead of Hello but now how can i get that into HTML part of the webstie ?
-
nice tut cant wait for you to finish it
-
lol it is Dwayne Jhonson and for WWE fans like me he is The rock and in the fast and furious movies he is Dom ... Now enough about the avatar...
-
Could u tell if it worked please ? the only reason im gonna buy logitech g510 is because i need more keys for mta...
-
i really dont see this as a problem...
-
local timleft = 200 local pizzaActive = nil
-
do you really need exactly that panel if so pm nextreme if he will update it or ask for permission so you can do it yourself...
-
https://wiki.multitheftauto.com/wiki/Local Global is the opposite
-
lolz why you guys discuss this? just find a cow and listen to it then
-
u mean custom skins loaded with engine functions? if so i dont think this is possible
-
i used another DB i think, anyway means the same
-
Anyway dont take the risk of decrypting them( i got banned from one of the biggest servers in mta because of it and really i wish i didnt do it ...) oh binslayer your hash means u[space]suck lol hope that was ment for capy
-
'Activity module Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. End Sub Sub Globals 'These global variables will be redeclared each time the activity is created. 'These variables can only be accessed from this module. End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("MainMenu") End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Button1_Click Msgbox("Hello World", "Just wanted to say HI :D") End Sub bTW thats a simple code for android wich makes a message box with title hello world and I just wanted to say HI as text
-
setDevelopmentMode ( bool enable )
-
ok so i think i helpt about 3 people with this now 600er, lordeterras and someone i dont rember name on so if you trust me add me on skype and i will show you in teamviwer
-
Nice cant wait to get home and test it out ...
-
i think this happesn if you are not in a team...
