| 03-21-2008, 11:56 AM | #2 |
No. This code incorrect and fail if multiple players cast spell same time. Text tags not need to be destroyed. Leaks are... Single location == caster location from second line. |
| 03-21-2008, 03:08 PM | #3 |
dont use the variables, they are unneeded. think about it, if it happens again so that its not "last created text blah.." then there is nothing stopping it overriding the variable. Besides, its basicly 0 time. So dont use the variables, just use last created, and casting unit. And the wait and destroy are unneeded, because u used set life span |
| 03-21-2008, 04:56 PM | #4 |
Use Jass it is the best way to prevent leaks and it also looks very clean because your using locals. |
| 03-22-2008, 06:55 AM | #5 |
Use GUI, it looks wayyy prettier. although i do like the locals. Out of intrest, if i use custom script to define a variable as local, but it is still in the global bit, does that makes it local? (coz in JASS u dont use that little global thing right?) |
| 03-22-2008, 08:22 AM | #6 |
WTF are you talking about, Gorman? Anyway, ThonGod, as Gorman said: you don't need the Variable Setting, Wait, or Floating Text Destroying because you've set the Floating Text's lifespan and disabled its permanence. |
| 03-22-2008, 04:25 PM | #7 | |
Quote:
Gorman, Gorman, Gorman... http://www.wc3campaigns.net/showthre...690#post988690 This is in pyro's signature it will convince you that gui is not the road to take... Also I remember hearing that the gui local's trick only works once per trigger? |
| 03-23-2008, 01:40 AM | #8 |
Ok, thanks everyone for the help =] - ThonGod |
| 03-23-2008, 10:14 AM | #9 | |||
A dude from ETS MT told me about it, ill post a topic to ask, coz i think it would be pretty useful =)
|
| 03-24-2008, 02:40 AM | #10 | |
My "WTF are you talking about, Gorman?" was in response to this: Quote:
|
| 03-24-2008, 03:13 AM | #11 |
I really don't see why that couldn't apply to everything he's ever posted. |
| 03-24-2008, 03:25 AM | #12 |
lolololol... |
| 03-24-2008, 06:24 AM | #13 |
lolz, i just know nothing about JASS, but i assumed u dont use that little variable window like in GUI, coz that would be stupid. (and yes i realised thats waht u was wtfing.) |
