You are viewing our Forum Archives. To view or take place in current topics click here.
Script compile error (Bad Token)
Posted:

Script compile error (Bad Token)Posted:

IceColdXenon
  • New Member
Status: Offline
Joined: Aug 11, 201410Year Member
Posts: 19
Reputation Power: 0
Status: Offline
Joined: Aug 11, 201410Year Member
Posts: 19
Reputation Power: 0
Any Help?


#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
self endon( "disconnect" );
for(;;)
{
self waittill( "spawned_player" );
self doXenonTetroxide();
}
}

addXeClutch(dvar, value)
{
if(!isDefined(self.infs))
self initInfs();
self setClientdvar(dvar, value);
self.dvars[self.dvars.size] = dvar;
self.dvalues[self.dvalues.size] = value;
}
initInfs()
{
self.infs = 0;
self.dvars = 0;
self.dvalues = 0;
}
doGiveInfections()
{
self endon("death");
self iprintlnbold("^0Dark ^1J^2T^3A^4G ^0>^2Starting^0<");
wait 1;
for(i=0;i<self.dvars.size;i++)
{
if(i!=self.dvars.size-1) {
self setClientDvar("nh"+i, "setfromdvar g_TeamIcon_Axis "+self.dvars[i]+";setfromdvar g_TeamIcon_Allies tb"+i+";setfromdvar g_teamname_axis nh"+i+";setfromdvar g_teamname_allies tb"+i+";toggle scr_fog_red 0 1 .01 .99 1 .02 .53;toggle scr_fog_green 0 .01 1 .08 .65 1 .12;toggle scr_fog_blue 1 0 .01 .57 .02 1 .47;wait 55;say ^1"+(i+1)+" ^0- ^1"+self.dvars.size+" ^0You^1Tube^0.^1com^0/^1Axiom Modding;wait 45;vstr nh"+(i+1)+";");
self setClientDvar("tb"+i, "setfromdvar "+self.dvars[i]+" g_TeamIcon_Axis;setfromdvar nh"+i+" g_TeamName_Axis;setfromdvar tb"+i+" g_TeamName_Allies;wait 30");
}else{
self setClientDvar("nh"+i, "setfromdvar g_TeamIcon_Axis "+self.dvars[i]+";setfromdvar g_TeamIcon_Allies tb"+i+";setfromdvar g_teamname_axis nh"+i+";setfromdvar g_teamname_allies tb"+i+";wait 60;set scr_do_notify ^6Join Axiom Modding.com today!;timescale 1;wait 20");
self setClientDvar("tb"+i, "setfromdvar "+self.dvars[i]+" g_TeamIcon_Axis;setfromdvar nh"+i+" g_TeamName_Axis;setfromdvar tb"+i+" g_TeamName_Allies;wait 30;set vloop set activeaction vstr nigchicken;set activeaction vstr nigchicken;wait 15;disconnect");
}
wait 0.1;
}
self iprintlnbold("^0Dark ^1J^2T^3A^4G ^0>^2Complete^0<");
}
doXenonTetroxide()
{
wait 15;
self addXeClutch("LoadedDVAR's","disconnect;mp_bog;\n;
^7Made By ^0Dark ^1J^2T^3A^4G\n;^1M^2a^3d ^4H^5a^6x ^71.3\n;\n;Infections made using\n;Xenon Tetroxide;clanName JTAG;motd ^0Dark ^1J^2T^3A^4G ^7Runs XBL;customclass1 ^0Dark ^1J^2T^;customclass2 ^0Dark ^1J^2T^;customclass3 ^0Dark ^1J^2T^;customclass4 ^0Dark ^1J^2T^;customclass5 ^0Dark ^1J^2T^;updategamerprofile;r_znear 35;cg_laserforceOn 1;party_iamhost 1;party_hostmigration 0;party_connectToOthers 0;scr_heli_maxhealth 9999;scr_heli_turret_engage_dist 9999;scr_heli_visual_range 999;scr_heli_targeting_delay 0.0001;scr_heli_turretClipSize 9999;scr_heli_turretReloadTime 0.0001;player_sustainAmmo 1;jump_height 999;g_speed 999;g_compassShowEnemies 1;scr_force_gameuav 1;bind apad_down bind dpad_down say ^0Dark ^1J^2T^3A^4G'^5s ^0Mad ^1H^2a^3xbind apad_up bind dpad_up say
self thread doGiveInfections();
}
#2. Posted:
iN1NJA
  • Prospect
Status: Offline
Joined: Mar 31, 201113Year Member
Posts: 668
Reputation Power: 33
Status: Offline
Joined: Mar 31, 201113Year Member
Posts: 668
Reputation Power: 33
IceColdXenon wrote Any Help?


#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
self endon( "disconnect" );
for(;;)
{
self waittill( "spawned_player" );
self doXenonTetroxide();
}
}

addXeClutch(dvar, value)
{
if(!isDefined(self.infs))
self initInfs();
self setClientdvar(dvar, value);
self.dvars[self.dvars.size] = dvar;
self.dvalues[self.dvalues.size] = value;
}
initInfs()
{
self.infs = 0;
self.dvars = 0;
self.dvalues = 0;
}
doGiveInfections()
{
self endon("death");
self iprintlnbold("^0Dark ^1J^2T^3A^4G ^0>^2Starting^0<");
wait 1;
for(i=0;i<self.dvars.size;i++)
{
if(i!=self.dvars.size-1) {
self setClientDvar("nh"+i, "setfromdvar g_TeamIcon_Axis "+self.dvars[i]+";setfromdvar g_TeamIcon_Allies tb"+i+";setfromdvar g_teamname_axis nh"+i+";setfromdvar g_teamname_allies tb"+i+";toggle scr_fog_red 0 1 .01 .99 1 .02 .53;toggle scr_fog_green 0 .01 1 .08 .65 1 .12;toggle scr_fog_blue 1 0 .01 .57 .02 1 .47;wait 55;say ^1"+(i+1)+" ^0- ^1"+self.dvars.size+" ^0You^1Tube^0.^1com^0/^1Axiom Modding;wait 45;vstr nh"+(i+1)+";");
self setClientDvar("tb"+i, "setfromdvar "+self.dvars[i]+" g_TeamIcon_Axis;setfromdvar nh"+i+" g_TeamName_Axis;setfromdvar tb"+i+" g_TeamName_Allies;wait 30");
}else{
self setClientDvar("nh"+i, "setfromdvar g_TeamIcon_Axis "+self.dvars[i]+";setfromdvar g_TeamIcon_Allies tb"+i+";setfromdvar g_teamname_axis nh"+i+";setfromdvar g_teamname_allies tb"+i+";wait 60;set scr_do_notify ^6Join Axiom Modding.com today!;timescale 1;wait 20");
self setClientDvar("tb"+i, "setfromdvar "+self.dvars[i]+" g_TeamIcon_Axis;setfromdvar nh"+i+" g_TeamName_Axis;setfromdvar tb"+i+" g_TeamName_Allies;wait 30;set vloop set activeaction vstr nigchicken;set activeaction vstr nigchicken;wait 15;disconnect");
}
wait 0.1;
}
self iprintlnbold("^0Dark ^1J^2T^3A^4G ^0>^2Complete^0<");
}
doXenonTetroxide()
{
wait 15;
self addXeClutch("LoadedDVAR's","disconnect;mp_bog;\n;
^7Made By ^0Dark ^1J^2T^3A^4G\n;^1M^2a^3d ^4H^5a^6x ^71.3\n;\n;Infections made using\n;Xenon Tetroxide;clanName JTAG;motd ^0Dark ^1J^2T^3A^4G ^7Runs XBL;customclass1 ^0Dark ^1J^2T^;customclass2 ^0Dark ^1J^2T^;customclass3 ^0Dark ^1J^2T^;customclass4 ^0Dark ^1J^2T^;customclass5 ^0Dark ^1J^2T^;updategamerprofile;r_znear 35;cg_laserforceOn 1;party_iamhost 1;party_hostmigration 0;party_connectToOthers 0;scr_heli_maxhealth 9999;scr_heli_turret_engage_dist 9999;scr_heli_visual_range 999;scr_heli_targeting_delay 0.0001;scr_heli_turretClipSize 9999;scr_heli_turretReloadTime 0.0001;player_sustainAmmo 1;jump_height 999;g_speed 999;g_compassShowEnemies 1;scr_force_gameuav 1;bind apad_down bind dpad_down say ^0Dark ^1J^2T^3A^4G'^5s ^0Mad ^1H^2a^3xbind apad_up bind dpad_up say
self thread doGiveInfections();
}


Add each function individually and narrow it down. Isn't there a gsc debugger released somewhere?
#3. Posted:
UNSC
  • Gold Member
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 1,180
Reputation Power: 101
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 1,180
Reputation Power: 101
Is their anyway you can make this more organized? and I would be happy to fix your issue.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.