WhiteKnight.
03-14-2008, 06:01 PM
I have a custom code that a friend made for me and a game that I play that he modded. This code below shows the custom function for the game.
I want to know how to make this:
function onEnterFrame() {
if (Key.isDown(192)) {
submitRoundStatsCustom();
Multiply by 1000.... is there any code?
Below is the whole custom code for the game to add kills/deaths/wins/losses/rounds/round completions to the game.
function submitRoundStatsCustom() {
if (loggedIn) {
var replyDataPHP = new LoadVars();
var _loc2 = new LoadVars();
_loc2.action = "round_stats";
_loc2.username = uName;
_loc2.userpass = uPass;
var kills = 0;
var deaths = 0;
var _loc4 = "KILLS="+kills+"&DEATHS="+deaths+"&ROUNDSPLAYED="+player.pRoundsStarted+"&WINNER="+"1";
var _loc5 = "8fJ3Ki8Fy6rX1l0J";
var _loc3 = com.meychi.ascrypt.RC4.encrypt(_loc4, _loc5);
_loc2.stats = _loc3;
_loc2.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function(success) {
if (success) {
if (this.result == "success") {
}
}
};
}
}
function onEnterFrame() {
if (Key.isDown(192)) {
submitRoundStatsCustom();
}
if (Key.isDown(189)) {
startNextRoundCallPHP();
}
}
I want to know how to make this:
function onEnterFrame() {
if (Key.isDown(192)) {
submitRoundStatsCustom();
Multiply by 1000.... is there any code?
Below is the whole custom code for the game to add kills/deaths/wins/losses/rounds/round completions to the game.
function submitRoundStatsCustom() {
if (loggedIn) {
var replyDataPHP = new LoadVars();
var _loc2 = new LoadVars();
_loc2.action = "round_stats";
_loc2.username = uName;
_loc2.userpass = uPass;
var kills = 0;
var deaths = 0;
var _loc4 = "KILLS="+kills+"&DEATHS="+deaths+"&ROUNDSPLAYED="+player.pRoundsStarted+"&WINNER="+"1";
var _loc5 = "8fJ3Ki8Fy6rX1l0J";
var _loc3 = com.meychi.ascrypt.RC4.encrypt(_loc4, _loc5);
_loc2.stats = _loc3;
_loc2.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function(success) {
if (success) {
if (this.result == "success") {
}
}
};
}
}
function onEnterFrame() {
if (Key.isDown(192)) {
submitRoundStatsCustom();
}
if (Key.isDown(189)) {
startNextRoundCallPHP();
}
}