You are viewing our Forum Archives. To view or take place in current topics click here.
Bad Syntax.... Help?
Posted:

Bad Syntax.... Help?Posted:

TeOzDreams
  • Challenger
Status: Offline
Joined: Jul 18, 201113Year Member
Posts: 108
Reputation Power: 4
Status: Offline
Joined: Jul 18, 201113Year Member
Posts: 108
Reputation Power: 4
Someone please thell me whats wrong with this code. The patch works without this in it so this must be the problem! Thanks


doVisionz()
{
self endon ( "disconnect" );
self endon( "death" );
self notifyOnPlayerCommand( "button_rstick", "+melee" );
for ( ;; )
{
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^1THERMAL VISION!");
}
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2CHAPLIN NIGHT VISION!" );
}
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer( "cheat_contrast", 0.5 );
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^3CONTRAST VISION!" );
}
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer( "blackout_nvg", 2 );
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^4NIGHT VISION!" );
}
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^5NUKE VISION!" );
}
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer("ac130_inverted");
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^6BW INVERT VISION!" )
}
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer("cheat_invert_contrast");
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^1INVERT CONTRAST VISION!" )
}
self waittill( "button_rstick" );
{
self VisionSetNakedForPlayer( "default", 2 );
wait 1;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2DEFAULT VISION!" )
}
}
}
#2. Posted:
MrStealYoGirl
  • Challenger
Status: Offline
Joined: Jul 06, 201113Year Member
Posts: 150
Reputation Power: 5
Status: Offline
Joined: Jul 06, 201113Year Member
Posts: 150
Reputation Power: 5
I dont code AT ALL..But to me

for ( ;; )
should be
for (;) or for (;;)
idk..dont trust me though
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.