10/13/2026 [22:49:16] GMT Home .:. Logout
Forums
Hardmaps.com :: Forums :: Map Making Forum :: Hints, Tips and trouble shooting
 
<< Previous thread | Next thread >>
Important for Mapbuilders..
Moderators: Hardmaps Administrator, *HmS*Wedge, *HmS*grunt, *HmS*Trevor, *HmS*LongBow
Author Post
NUT ACE
Sun May 20 2007
picard
Registered Member #1450
Joined: Wed Oct 11 2006
Location: The Netherlands
Posts: 635
Ever wondered why the h$ll your wac code didn't work?
You were absolutely sure your conditions and commands were right?

Well this might be your problem....

What we've found out (thanks to Oldman) is that sometimes when you put a comment like this.

if never() and ssndead(1008) then // trigger for helo to waypoint
ssntowp(66152,1)
endif


The forward slashes sometimes will cause your condition to trigger.
So its better to put your comment outside your condition , like this..

 // trigger for helo to waypoint 
if never() and ssndead(1008) then
ssntowp(66152,1)
endif


Another solution would be to use the semicolon instead of the forward slashes

if never() and ssndead(1008) then  ;trigger for helo to waypoint
ssntowp(66152,1)
endif


[ Edited Sun May 20 2007 ]
Back to top
*HmS*Tiger
Sun May 20 2007
The last thing I want to do is hurt you. But it's still on my list.
Registered Member #343
Joined: Fri Oct 29 2004
Location: Baton Rouge, LA USA
Posts: 1490
Well, its always a good idea to annotate your code so that when you come back to it a year later you don't have to spend inordinate amounts od time figuring out what it did. (or if someone new looked at it) . Good Job!
Back to top
BlueSky =TJO=
Tue Nov 30 2010
BlueSky
Registered Member #2385
Joined: Tue May 12 2009
Posts: 2
I know this info is a few years old but...

I have spent two nights now testing a simple map and having my code fail. I believe this may be the problem.

I have been putting //v1=1, //v1=2, etc. next to my variables to note the seq.

I'll bet it has been screwing with the code because everything fires as soon as I enter the map.

Knowledge never ages...

Thanks
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
All trademarks are copyright their respective owners.
This site is best viewed using 1280-1024 screen resolution.
{THEMEDISCLAIMER}
Render time: 0.0674 sec, 0.0094 of that for queries.