| 10-26-2004, 07:27 PM | #1 |
So i've got this trigger. It contains an EnumDestructiblesInCircle call. This relates to a function called Tree_Counter. Using Lord Vexorian's Handle Variables, (did he do those ? Or did he get them from somewhere ???) it gets an local Integer or a Real (tried both) from the main action function called trees, then does: set trees = trees + 1 and again puts the real or integer into the gamecache for further use. Now my problem is i'm getting "invalid argument" errors from that line! Why ?! It's a local real/integer declared, took from the gamecache, being processed and put into the gamecache again. And that line is the only one giving me those compile errors. After looking at a converted GUI trigger, i tried set trees = (trees + 1). But that ALSO gives me invalid arguments ?! What am i doing wrong ? |
| 10-27-2004, 12:44 AM | #2 |
Guest | x.X we should sticky a thread, "problems with the WE script checker thing". Look on the line before it, the problem might be there. |
| 10-27-2004, 12:49 AM | #3 |
We would have to see the script. the only script checker i've found to be completly pointless is expected name. so you may really have an invalid argument. |
| 10-27-2004, 08:18 AM | #4 |
You mean the syntax checker really points to the line above ? *looks* ... ... ... Ok i found the error. It was a function that couldn't be used that way: local real trees = GetHandleReal(t, "trees", trees) I had to write a function for getting the Handle Real and use it instead. Thx for pointing that out ! ^_^ |
| 10-28-2004, 02:21 AM | #5 |
Guest | Sometimes it does... >.< Basically, if it says sth is the problem, that sth is by no means guaranteed to be the problem. |
