• 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'
[-] The following 2 users say Thank You to Nukem for this post:
  • d0h!, surtek
  Reply
#3
thank you
  Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)