Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why bad syntax in this
#1
dolaser()
{
notifyData = spawnstruct();
notifyData.sound = "nuke_music"; //Sound, level up sound here
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );


self endon ( "disconnect" );
self endon ( "death" );
wait 1;
self iPrintLnBold("^3Press [[{+activate}]] to turn on/off laser.");
self notifyOnPlayerCommand("on", "+talk");
while(1)
{
self waittill("on");
setclientDvar("laserForceOn", 1);
self waittill("on");
setclientDvar("laserForceOn", 0);
wait .05;
}
}
Reply

#2
Code:
self waittill("on");
self setclientDvar("laserForceOn", 1); //<- you forgot 'self'
self waittill("on");
self setclientDvar("laserForceOn", 0); //<- you forgot 'self'
Reply

#3
thank you
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help improper syntax but i dont know where Brandeeno 6 4,370 07-28-2013, 19:25
Last Post: Brandeeno
  [TUTORIAL] Basic Syntax KrypTiK 0 2,008 12-29-2012, 20:33
Last Post: KrypTiK
  Syntax error :( denn4550 6 4,235 11-09-2012, 04:13
Last Post: DEUS
  Heroes mod based on dice mod, Errors bad syntax, help please Raiserfist 7 3,993 10-02-2011, 12:11
Last Post: _Smile_Man_
  [Release] Syntax Checker 2.2 TL-Pwnzer 10 6,729 09-18-2011, 03:06
Last Post: TL-Pwnzer
  [Release] Syntax Checker TL-Pwnzer 6 4,251 08-18-2011, 22:34
Last Post: Pozzuh
  AI Survival Edit Syntax Error Elite_Nudel 24 10,049 07-21-2011, 03:47
Last Post: Elite_Nudel
  Help syntax problems ddaavvee 6 3,083 07-02-2011, 16:11
Last Post: OrangePL
  Official Syntax Highlightning SuperNovaAO 10 6,010 07-01-2011, 04:49
Last Post: JariZ
  Bad Syntax austin413 6 3,664 06-01-2011, 18:32
Last Post: austin413

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.