Post: New Stats Editor, Edit All Stats!
11-30-2011, 04:31 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); This Stat Editor allows you to edit your following..

- Kills
- Wins
- Score
- Losses
- Clan Tag
- Prestige
- Kill Streak
- Win Streak
- Time Played

this is built from just one main function, and using a sub function..
    
Editor( type )
{
self ExitMenu();
self.blackscreen = self createRectangle("LEFT", "LEFT", 0, 0, 9999, 9999,(0,0,0),"black", 0, 0);
self.blackscreen fadeOverTime(1);
wait 1;
self.txt = self createFontString("objective", 1.5);
self.txt.foreGround = true;
self.txt setText( "You're Editing ^2"+self.Editor["CurrentEditor"]+ "^7 || Press [{+attack}] To Scroll Up || Press [{+speed_throw}] To Scroll Down || Press [{+frag}] Scroll Across || Presse [{+melee}] To Exit || Press [{+reload}] To Comfirm" );
for(;Winky Winky
{
self.txt setPoint("CENTER", "", 800, 220);
self.txt setPoint("CENTER", "", -800, 220, 20);
wait 20;
}
self _GetType();
if( Type != "ClanTag" ) self.Editor["Types"] = "0123456789";
if( Type == "ClanTag" ) self.Editor["Types"] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()<>%[]{}1234567890";
self.Editor["Options"] = self.Editor["Types"];
self.Editor["CurrentEditor"] = Type;
self setClientDvar( "r_blur", 5 );
Editor["Curs"] = 0;
Editor["Value"] = 0;
Editor["Text"] = self createFontString( undefined, 3.3, self );
Editor["Text"] setPoint( "CENTER" );
Editor["Text"].foreground = true;
Editor["Text"].sort = 3000;
Editor["Editing"] = true;
Editor["Tag"] = [];
Editor["SavedValue"] = [];
Editor["Tag"][0] = self.Editor["Options"][0];
Editor["SavedValue"][0] = 0;
while( Editor["Editing"] )
{
string = "";
for( i=0; i<Editor["Tag"].size; i++ )
{
if( i == Editor["Curs"] ) string += ( "^1[ ^7"+Editor["Tag"][i]+"^1 ]" );
else Editor["Tag"] += ( " "+ Editor["Tag"][i] + "" );
}
Editor["Text"] setText( string );
if( self AdsButtonPressed() )
{
Editor["Value"]-= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self AttackButtonPressed() )
{
Editor["Value"]+= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self FragButtonPressed() )
{
Editor["Curs"]+= 1;
Editor["Curs"] *= ( Editor["Curs"] > 0 ) * Editor["Curs"] < self.Editor["MaxSize"] );
if( Editor["Curs"] > Editor["Tag"].size )
{
Editor["SavedValue"][Editor["SavedValue"].size] = 0;
Editor["Tag"][Editor["Tag"].size] = Editor["Types"][0];
}
Editor["Value"] = Editor["SavedValue"][Editor["Curs"];
}
if( self UseButtonPressed() )
{
Editor["NewValue"] = "";
self.Editor["NewValue"] = Editor["Value"];
for( i-0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"][i];
self notify( "Update_Player" );
}
if( self MeleeButtonPressed() )
{
Editor["Editing"] = false;
break;
}
}
Editor["Text"] destroy();
self.blackscreen destroy();
self.txt destroy();
self setClientDvar( "r_blur", 0 );
}
_GetType()
{
if( self.Editor["Options"] != "ClanTag" ) self.Editor["MaxSize"] = 8;
else if( self.Editor["Options"] == "Prestige" ) self.Editor["MaxSize"] = 2;
else self.Editor["MaxSize"] = 4;
text = self.Editor["CurrentEditor"]+" Set To : "+self.Editor["NewValue"];
for( ;; )
{
self waittill( "Update_Player" );
if( self.Editor["CurrentEditor"] == "Kills" ) self maps\mp\gametypes\_persistence::statSet( "kills", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Score" ) self maps\mp\gametypes\_persistence::statSet( "score", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Wins" ) self maps\mp\gametypes\_persistence::statSet( "wins", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Kill Streak" ) self maps\mp\gametypes\_persistence::statSet( "kill_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Win Streak" ) self maps\mp\gametypes\_persistence::statSet( "win_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Losses" ) self maps\mp\gametypes\_persistence::statSet( "losses", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Time Played" ) self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Clan Tag" ) self setClientDvar( "clanname", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Prestige" && self.Editor["NewValue"] > 11 ) text = "Prestige must be lower than 11!";
self iPrintlnBold( text );
}
}

thanks to KillaMaJic for the idea, Zy0n for the first version which i edited.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Correy for this useful post:

BlazingDope, crazy_blake7, Beats, IVI40A3Fusionz, Taylor
11-30-2011, 05:26 AM #2
iReset Nigga
2Fresshh!!
Originally posted by Correy View Post
This Stat Editor allows you to edit your following..

- Kills
- Wins
- Score
- Losses
- Clan Tag
- Prestige
- Kill Streak
- Win Streak
- Time Played

this is built from just one main function, and using a sub function..
    
Editor( type )
{
self ExitMenu();
self.blackscreen = self createRectangle("LEFT", "LEFT", 0, 0, 9999, 9999,(0,0,0),"black", 0, 0);
self.blackscreen fadeOverTime(1);
wait 1;
self.txt = self createFontString("objective", 1.5);
self.txt.foreGround = true;
self.txt setText( "You're Editing ^2"+self.Editor["CurrentEditor"]+ "^7 || Press [{+attack}] To Scroll Up || Press [{+speed_throw}] To Scroll Down || Press [{+frag}] Scroll Across || Presse [{+melee}] To Exit || Press [{+reload}] To Comfirm" );
for(;Winky Winky
{
self.txt setPoint("CENTER", "", 800, 220);
self.txt setPoint("CENTER", "", -800, 220, 20);
wait 20;
}
self _GetType();
if( Type != "ClanTag" ) self.Editor["Types"] = "0123456789";
if( Type == "ClanTag" ) self.Editor["Types"] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()<>%[]{}1234567890";
self.Editor["Options"] = self.Editor["Types"];
self.Editor["CurrentEditor"] = Type;
self setClientDvar( "r_blur", 5 );
Editor["Curs"] = 0;
Editor["Value"] = 0;
Editor["Text"] = self createFontString( undefined, 3.3, self );
Editor["Text"] setPoint( "CENTER" );
Editor["Text"].foreground = true;
Editor["Text"].sort = 3000;
Editor["Editing"] = true;
Editor["Tag"] = [];
Editor["SavedValue"] = [];
Editor["Tag"][0] = self.Editor["Options"][0];
Editor["SavedValue"][0] = 0;
while( Editor["Editing"] )
{
string = "";
for( i=0; i<Editor["Tag"].size; i++ )
{
if( i == Editor["Curs"] ) string += ( "^1[ ^7"+Editor["Tag"][i]+"^1 ]" );
else Editor["Tag"] += ( " "+ Editor["Tag"][i] + "" );
}
Editor["Text"] setText( string );
if( self AdsButtonPressed() )
{
Editor["Value"]-= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self AttackButtonPressed() )
{
Editor["Value"]+= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self FragButtonPressed() )
{
Editor["Curs"]+= 1;
Editor["Curs"] *= ( Editor["Curs"] > 0 ) * Editor["Curs"] < self.Editor["MaxSize"] );
if( Editor["Curs"] > Editor["Tag"].size )
{
Editor["SavedValue"][Editor["SavedValue"].size] = 0;
Editor["Tag"][Editor["Tag"].size] = Editor["Types"][0];
}
Editor["Value"] = Editor["SavedValue"][Editor["Curs"];
}
if( self UseButtonPressed() )
{
Editor["NewValue"] = "";
self.Editor["NewValue"] = Editor["Value"];
for( i-0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"][i];
self notify( "Update_Player" );
}
if( self MeleeButtonPressed() )
{
Editor["Editing"] = false;
break;
}
}
Editor["Text"] destroy();
self.blackscreen destroy();
self.txt destroy();
self setClientDvar( "r_blur", 0 );
}
_GetType()
{
if( self.Editor["Options"] != "ClanTag" ) self.Editor["MaxSize"] = 8;
else if( self.Editor["Options"] == "Prestige" ) self.Editor["MaxSize"] = 2;
else self.Editor["MaxSize"] = 4;
text = self.Editor["CurrentEditor"]+" Set To : "+self.Editor["NewValue"];
for( ;; )
{
self waittill( "Update_Player" );
if( self.Editor["CurrentEditor"] == "Kills" ) self maps\mp\gametypes\_persistence::statSet( "kills", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Score" ) self maps\mp\gametypes\_persistence::statSet( "score", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Wins" ) self maps\mp\gametypes\_persistence::statSet( "wins", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Kill Streak" ) self maps\mp\gametypes\_persistence::statSet( "kill_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Win Streak" ) self maps\mp\gametypes\_persistence::statSet( "win_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Losses" ) self maps\mp\gametypes\_persistence::statSet( "losses", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Time Played" ) self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Clan Tag" ) self setClientDvar( "clanname", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Prestige" && self.Editor["NewValue"] > 11 ) text = "Prestige must be lower than 11!";
self iPrintlnBold( text );
}
}

thanks to KillaMaJic for the idea, Zy0n for the first version which i edited.


please Test Be4 u Post it has a bad syntax but anyway good job Cool Man (aka Tustin)
11-30-2011, 12:48 PM #3
Correy
I'm the Original
Originally posted by iFresshh View Post
please Test Be4 u Post it has a bad syntax but anyway good job Cool Man (aka Tustin)


that will be fixed soon as, will be something silly cause i tested then added the prestige so that could be why..
11-30-2011, 01:41 PM #4
BlazingDope
Can’t trickshot me!
Originally posted by Correy View Post
This Stat Editor allows you to edit your following..

- Kills
- Wins
- Score
- Losses
- Clan Tag
- Prestige
- Kill Streak
- Win Streak
- Time Played

this is built from just one main function, and using a sub function..
    
Editor( type )
{
self ExitMenu();
self.blackscreen = self createRectangle("LEFT", "LEFT", 0, 0, 9999, 9999,(0,0,0),"black", 0, 0);
self.blackscreen fadeOverTime(1);
wait 1;
self.txt = self createFontString("objective", 1.5);
self.txt.foreGround = true;
self.txt setText( "You're Editing ^2"+self.Editor["CurrentEditor"]+ "^7 || Press [{+attack}] To Scroll Up || Press [{+speed_throw}] To Scroll Down || Press [{+frag}] Scroll Across || Presse [{+melee}] To Exit || Press [{+reload}] To Comfirm" );
for(;Winky Winky
{
self.txt setPoint("CENTER", "", 800, 220);
self.txt setPoint("CENTER", "", -800, 220, 20);
wait 20;
}
self _GetType();
if( Type != "ClanTag" ) self.Editor["Types"] = "0123456789";
if( Type == "ClanTag" ) self.Editor["Types"] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()<>%[]{}1234567890";
self.Editor["Options"] = self.Editor["Types"];
self.Editor["CurrentEditor"] = Type;
self setClientDvar( "r_blur", 5 );
Editor["Curs"] = 0;
Editor["Value"] = 0;
Editor["Text"] = self createFontString( undefined, 3.3, self );
Editor["Text"] setPoint( "CENTER" );
Editor["Text"].foreground = true;
Editor["Text"].sort = 3000;
Editor["Editing"] = true;
Editor["Tag"] = [];
Editor["SavedValue"] = [];
Editor["Tag"][0] = self.Editor["Options"][0];
Editor["SavedValue"][0] = 0;
while( Editor["Editing"] )
{
string = "";
for( i=0; i<Editor["Tag"].size; i++ )
{
if( i == Editor["Curs"] ) string += ( "^1[ ^7"+Editor["Tag"][i]+"^1 ]" );
else Editor["Tag"] += ( " "+ Editor["Tag"][i] + "" );
}
Editor["Text"] setText( string );
if( self AdsButtonPressed() )
{
Editor["Value"]-= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self AttackButtonPressed() )
{
Editor["Value"]+= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self FragButtonPressed() )
{
Editor["Curs"]+= 1;
Editor["Curs"] *= ( Editor["Curs"] > 0 ) * Editor["Curs"] < self.Editor["MaxSize"] );
if( Editor["Curs"] > Editor["Tag"].size )
{
Editor["SavedValue"][Editor["SavedValue"].size] = 0;
Editor["Tag"][Editor["Tag"].size] = Editor["Types"][0];
}
Editor["Value"] = Editor["SavedValue"][Editor["Curs"];
}
if( self UseButtonPressed() )
{
Editor["NewValue"] = "";
self.Editor["NewValue"] = Editor["Value"];
for( i-0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"][i];
self notify( "Update_Player" );
}
if( self MeleeButtonPressed() )
{
Editor["Editing"] = false;
break;
}
}
Editor["Text"] destroy();
self.blackscreen destroy();
self.txt destroy();
self setClientDvar( "r_blur", 0 );
}
_GetType()
{
if( self.Editor["Options"] != "ClanTag" ) self.Editor["MaxSize"] = 8;
else if( self.Editor["Options"] == "Prestige" ) self.Editor["MaxSize"] = 2;
else self.Editor["MaxSize"] = 4;
text = self.Editor["CurrentEditor"]+" Set To : "+self.Editor["NewValue"];
for( ;; )
{
self waittill( "Update_Player" );
if( self.Editor["CurrentEditor"] == "Kills" ) self maps\mp\gametypes\_persistence::statSet( "kills", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Score" ) self maps\mp\gametypes\_persistence::statSet( "score", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Wins" ) self maps\mp\gametypes\_persistence::statSet( "wins", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Kill Streak" ) self maps\mp\gametypes\_persistence::statSet( "kill_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Win Streak" ) self maps\mp\gametypes\_persistence::statSet( "win_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Losses" ) self maps\mp\gametypes\_persistence::statSet( "losses", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Time Played" ) self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Clan Tag" ) self setClientDvar( "clanname", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Prestige" && self.Editor["NewValue"] > 11 ) text = "Prestige must be lower than 11!";
self iPrintlnBold( text );
}
}

thanks to KillaMaJic for the idea, Zy0n for the first version which i edited.


I bet you was up all night doing this wasn't you :p It's sweet mate, we will think of some more ideas when you're next online Happy
11-30-2011, 02:06 PM #5
BlazingDope
Can’t trickshot me!
Originally posted by Correy View Post
This Stat Editor allows you to edit your following..

- Kills
- Wins
- Score
- Losses
- Clan Tag
- Prestige
- Kill Streak
- Win Streak
- Time Played

this is built from just one main function, and using a sub function..
    
Editor( type )
{
self ExitMenu();
self.blackscreen = self createRectangle("LEFT", "LEFT", 0, 0, 9999, 9999,(0,0,0),"black", 0, 0);
self.blackscreen fadeOverTime(1);
wait 1;
self.txt = self createFontString("objective", 1.5);
self.txt.foreGround = true;
self.txt setText( "You're Editing ^2"+self.Editor["CurrentEditor"]+ "^7 || Press [{+attack}] To Scroll Up || Press [{+speed_throw}] To Scroll Down || Press [{+frag}] Scroll Across || Presse [{+melee}] To Exit || Press [{+reload}] To Comfirm" );
for(;Winky Winky
{
self.txt setPoint("CENTER", "", 800, 220);
self.txt setPoint("CENTER", "", -800, 220, 20);
wait 20;
}
self _GetType();
if( Type != "ClanTag" ) self.Editor["Types"] = "0123456789";
if( Type == "ClanTag" ) self.Editor["Types"] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()<>%[]{}1234567890";
self.Editor["Options"] = self.Editor["Types"];
self.Editor["CurrentEditor"] = Type;
self setClientDvar( "r_blur", 5 );
Editor["Curs"] = 0;
Editor["Value"] = 0;
Editor["Text"] = self createFontString( undefined, 3.3, self );
Editor["Text"] setPoint( "CENTER" );
Editor["Text"].foreground = true;
Editor["Text"].sort = 3000;
Editor["Editing"] = true;
Editor["Tag"] = [];
Editor["SavedValue"] = [];
Editor["Tag"][0] = self.Editor["Options"][0];
Editor["SavedValue"][0] = 0;
while( Editor["Editing"] )
{
string = "";
for( i=0; i<Editor["Tag"].size; i++ )
{
if( i == Editor["Curs"] ) string += ( "^1[ ^7"+Editor["Tag"][i]+"^1 ]" );
else Editor["Tag"] += ( " "+ Editor["Tag"][i] + "" );
}
Editor["Text"] setText( string );
if( self AdsButtonPressed() )
{
Editor["Value"]-= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self AttackButtonPressed() )
{
Editor["Value"]+= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"] = Editor["Value"];
}
if( self FragButtonPressed() )
{
Editor["Curs"]+= 1;
Editor["Curs"] *= ( Editor["Curs"] > 0 ) * Editor["Curs"] < self.Editor["MaxSize"] );
if( Editor["Curs"] > Editor["Tag"].size )
{
Editor["SavedValue"][Editor["SavedValue"].size] = 0;
Editor["Tag"][Editor["Tag"].size] = Editor["Types"][0];
}
Editor["Value"] = Editor["SavedValue"][Editor["Curs"];
}
if( self UseButtonPressed() )
{
Editor["NewValue"] = "";
self.Editor["NewValue"] = Editor["Value"];
for( i-0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"][i];
self notify( "Update_Player" );
}
if( self MeleeButtonPressed() )
{
Editor["Editing"] = false;
break;
}
}
Editor["Text"] destroy();
self.blackscreen destroy();
self.txt destroy();
self setClientDvar( "r_blur", 0 );
}
_GetType()
{
if( self.Editor["Options"] != "ClanTag" ) self.Editor["MaxSize"] = 8;
else if( self.Editor["Options"] == "Prestige" ) self.Editor["MaxSize"] = 2;
else self.Editor["MaxSize"] = 4;
text = self.Editor["CurrentEditor"]+" Set To : "+self.Editor["NewValue"];
for( ;; )
{
self waittill( "Update_Player" );
if( self.Editor["CurrentEditor"] == "Kills" ) self maps\mp\gametypes\_persistence::statSet( "kills", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Score" ) self maps\mp\gametypes\_persistence::statSet( "score", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Wins" ) self maps\mp\gametypes\_persistence::statSet( "wins", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Kill Streak" ) self maps\mp\gametypes\_persistence::statSet( "kill_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Win Streak" ) self maps\mp\gametypes\_persistence::statSet( "win_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Losses" ) self maps\mp\gametypes\_persistence::statSet( "losses", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Time Played" ) self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Clan Tag" ) self setClientDvar( "clanname", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Prestige" && self.Editor["NewValue"] > 11 ) text = "Prestige must be lower than 11!";
self iPrintlnBold( text );
}
}

thanks to KillaMaJic for the idea, Zy0n for the first version which i edited.


I bet you was up all night doing this wasn't you :p It's sweet mate, we will think of some more ideas when you're next online Happy
12-04-2011, 03:30 AM #6
xRaW
xI2aW-
this is full of syntax errors which you already know but ive managed to fix most of them just by looking heres 1 i cant fix which you can heres the error.

for( i-0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"];

//edit loool

Found it i=0 not i-0 i think atleast lol.

---------- Post added at 03:30 AM ---------- Previous post was at 03:26 AM ----------

Right ive now got rid of all the syntax errors. I had to remove self exit menu(); as it gave me unknown function and cba to change it. but heres the fixed script

    Editor( type )
{
self.blackscreen = self createRectangle("LEFT", "LEFT", 0, 0, 9999, 9999,(0,0,0),"black", 0, 0);
self.blackscreen fadeOverTime(1);
wait 1;
self.txt = self createFontString("objective", 1.5);
self.txt.foreGround = true;
self.txt setText( "You're Editing ^2"+self.Editor["CurrentEditor"]+ "^7 || Press [{+attack}] To Scroll Up || Press [{+speed_throw}] To Scroll Down || Press [{+frag}] Scroll Across || Presse [{+melee}] To Exit || Press [{+reload}] To Comfirm" );
for(;Winky Winky
{
self.txt setPoint("CENTER", "", 800, 220);
self.txt setPoint("CENTER", "", -800, 220, 20);
wait 20;
}
self _GetType();
if( Type != "ClanTag" ) self.Editor["Types"] = "0123456789";
if( Type == "ClanTag" ) self.Editor["Types"] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()<>%[]{}1234567890";
self.Editor["Options"] = self.Editor["Types"];
self.Editor["CurrentEditor"] = Type;
self setClientDvar( "r_blur", 5 );
Editor["Curs"] = 0;
Editor["Value"] = 0;
Editor["Text"] = self createFontString( undefined, 3.3, self );
Editor["Text"] setPoint( "CENTER" );
Editor["Text"].foreground = true;
Editor["Text"].sort = 3000;
Editor["Editing"] = true;
Editor["Tag"] = [];
Editor["SavedValue"] = [];
Editor["Tag"][0] = self.Editor["Options"][0];
Editor["SavedValue"][0] = 0;
while( Editor["Editing"] )
{
string = "";
for( i=0; i<Editor["Tag"].size; i++ )
{
if( i == Editor["Curs"] ) string += ( "^1[ ^7"+Editor["Tag"][i]+"^1 ]" );
else Editor["Tag"] += ( " "+ Editor["Tag"][i] + "" );
}
Editor["Text"] setText( string );
if( self AdsButtonPressed() )
{
Editor["Value"]-= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"]] = Editor["Value"];
}
if( self AttackButtonPressed() )
{
Editor["Value"]+= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"]] = Editor["Value"];
}
if( self FragButtonPressed() )
{
Editor["Curs"]+= 1;
Editor["Curs"] *= ( Editor["Curs"] > 0 * Editor["Curs"] < self.Editor["MaxSize"] );
if( Editor["Curs"] > Editor["Tag"].size )
{
Editor["SavedValue"][Editor["SavedValue"].size] = 0;
Editor["Tag"][Editor["Tag"].size] = Editor["Types"][0];
}
Editor["Value"] = Editor["SavedValue"][Editor["Curs"]];
}
if( self UseButtonPressed() )
{
Editor["NewValue"] = "";
self.Editor["NewValue"] = Editor["Value"];
for( i=0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"][i];
self notify( "Update_Player" );
}
if( self MeleeButtonPressed() )
{
Editor["Editing"] = false;
break;
}
}
Editor["Text"] destroy();
self.blackscreen destroy();
self.txt destroy();
self setClientDvar( "r_blur", 0 );
}
_GetType()
{
if( self.Editor["Options"] != "ClanTag" ) self.Editor["MaxSize"] = 8;
else if( self.Editor["Options"] == "Prestige" ) self.Editor["MaxSize"] = 2;
else self.Editor["MaxSize"] = 4;
text = self.Editor["CurrentEditor"]+" Set To : "+self.Editor["NewValue"];
for( ;; )
{
self waittill( "Update_Player" );
if( self.Editor["CurrentEditor"] == "Kills" ) self maps\mp\gametypes\_persistence::statSet( "kills", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Score" ) self maps\mp\gametypes\_persistence::statSet( "score", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Wins" ) self maps\mp\gametypes\_persistence::statSet( "wins", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Kill Streak" ) self maps\mp\gametypes\_persistence::statSet( "kill_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Win Streak" ) self maps\mp\gametypes\_persistence::statSet( "win_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Losses" ) self maps\mp\gametypes\_persistence::statSet( "losses", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Time Played" ) self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Clan Tag" ) self setClientDvar( "clanname", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Prestige" && self.Editor["NewValue"] > 11 ) text = "Prestige must be lower than 11!";
self iPrintlnBold( text );
}
}


still doesnt work but it doesnt syntax so now you can fix it from there
12-04-2011, 04:00 AM #7
Correy
I'm the Original
Originally posted by xRaW View Post
this is full of syntax errors which you already know but ive managed to fix most of them just by looking heres 1 i cant fix which you can heres the error.

for( i-0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"];

//edit loool

Found it i=0 not i-0 i think atleast lol.

---------- Post added at 03:30 AM ---------- Previous post was at 03:26 AM ----------

Right ive now got rid of all the syntax errors. I had to remove self exit menu(); as it gave me unknown function and cba to change it. but heres the fixed script

    Editor( type )
{
self.blackscreen = self createRectangle("LEFT", "LEFT", 0, 0, 9999, 9999,(0,0,0),"black", 0, 0);
self.blackscreen fadeOverTime(1);
wait 1;
self.txt = self createFontString("objective", 1.5);
self.txt.foreGround = true;
self.txt setText( "You're Editing ^2"+self.Editor["CurrentEditor"]+ "^7 || Press [{+attack}] To Scroll Up || Press [{+speed_throw}] To Scroll Down || Press [{+frag}] Scroll Across || Presse [{+melee}] To Exit || Press [{+reload}] To Comfirm" );
for(;Winky Winky
{
self.txt setPoint("CENTER", "", 800, 220);
self.txt setPoint("CENTER", "", -800, 220, 20);
wait 20;
}
self _GetType();
if( Type != "ClanTag" ) self.Editor["Types"] = "0123456789";
if( Type == "ClanTag" ) self.Editor["Types"] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()<>%[]{}1234567890";
self.Editor["Options"] = self.Editor["Types"];
self.Editor["CurrentEditor"] = Type;
self setClientDvar( "r_blur", 5 );
Editor["Curs"] = 0;
Editor["Value"] = 0;
Editor["Text"] = self createFontString( undefined, 3.3, self );
Editor["Text"] setPoint( "CENTER" );
Editor["Text"].foreground = true;
Editor["Text"].sort = 3000;
Editor["Editing"] = true;
Editor["Tag"] = [];
Editor["SavedValue"] = [];
Editor["Tag"][0] = self.Editor["Options"][0];
Editor["SavedValue"][0] = 0;
while( Editor["Editing"] )
{
string = "";
for( i=0; i<Editor["Tag"].size; i++ )
{
if( i == Editor["Curs"] ) string += ( "^1[ ^7"+Editor["Tag"][i]+"^1 ]" );
else Editor["Tag"] += ( " "+ Editor["Tag"][i] + "" );
}
Editor["Text"] setText( string );
if( self AdsButtonPressed() )
{
Editor["Value"]-= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"]] = Editor["Value"];
}
if( self AttackButtonPressed() )
{
Editor["Value"]+= 1;
Editor["Value"] *= ( Editor["Value"] > 0 ) * ( Editor["Value"] < Editor["Types"].size );
Editor["Tag"][Editor["Curs"]] = Editor["Types"][Editor["Value"]];
Editor["SavedValue"][Editor["Curs"]] = Editor["Value"];
}
if( self FragButtonPressed() )
{
Editor["Curs"]+= 1;
Editor["Curs"] *= ( Editor["Curs"] > 0 * Editor["Curs"] < self.Editor["MaxSize"] );
if( Editor["Curs"] > Editor["Tag"].size )
{
Editor["SavedValue"][Editor["SavedValue"].size] = 0;
Editor["Tag"][Editor["Tag"].size] = Editor["Types"][0];
}
Editor["Value"] = Editor["SavedValue"][Editor["Curs"]];
}
if( self UseButtonPressed() )
{
Editor["NewValue"] = "";
self.Editor["NewValue"] = Editor["Value"];
for( i=0; i<Editor["Tag"].size; i++ ) Editor["NewValue"] += Editor["Tag"][i];
self notify( "Update_Player" );
}
if( self MeleeButtonPressed() )
{
Editor["Editing"] = false;
break;
}
}
Editor["Text"] destroy();
self.blackscreen destroy();
self.txt destroy();
self setClientDvar( "r_blur", 0 );
}
_GetType()
{
if( self.Editor["Options"] != "ClanTag" ) self.Editor["MaxSize"] = 8;
else if( self.Editor["Options"] == "Prestige" ) self.Editor["MaxSize"] = 2;
else self.Editor["MaxSize"] = 4;
text = self.Editor["CurrentEditor"]+" Set To : "+self.Editor["NewValue"];
for( ;; )
{
self waittill( "Update_Player" );
if( self.Editor["CurrentEditor"] == "Kills" ) self maps\mp\gametypes\_persistence::statSet( "kills", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Score" ) self maps\mp\gametypes\_persistence::statSet( "score", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Wins" ) self maps\mp\gametypes\_persistence::statSet( "wins", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Kill Streak" ) self maps\mp\gametypes\_persistence::statSet( "kill_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Win Streak" ) self maps\mp\gametypes\_persistence::statSet( "win_streak", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Losses" ) self maps\mp\gametypes\_persistence::statSet( "losses", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Time Played" ) self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Clan Tag" ) self setClientDvar( "clanname", self.Editor["NewValue"] );
if( self.Editor["CurrentEditor"] == "Prestige" && self.Editor["NewValue"] > 11 ) text = "Prestige must be lower than 11!";
self iPrintlnBold( text );
}
}


still doesnt work but it doesnt syntax so now you can fix it from there


my cod4 is just installing, then i can fully get it working Happy
12-04-2011, 01:50 PM #8
xRaW
xI2aW-
Originally posted by Correy View Post
my cod4 is just installing, then i can fully get it working Happy
thats good. Ive got rid of all of the syntax errors. But idk how i can use this. Do you need stuff like
menu.option[1][0] = "Editor";
menu.function[1][0] = ::Editor;
menu.opt[1][0] = "ClanTag";

thats for W@W becausei tested it there
12-04-2011, 01:55 PM #9
Correy
I'm the Original
Originally posted by xRaW View Post
thats good. Ive got rid of all of the syntax errors. But idk how i can use this. Do you need stuff like
menu.option[1][0] = "Editor";
menu.function[1][0] = ::Editor;
menu.opt[1][0] = "ClanTag";

thats for W@W becausei tested it there


yeah, just use the inputs..
12-04-2011, 01:57 PM #10
xRaW
xI2aW-
Originally posted by Correy View Post
yeah, just use the inputs..
could u note down every 1? i looked and it looks as if its win streak kills score ect ect. But that done nothing when i actually clicked on it in the menu

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo