| 09-14-2008, 12:39 AM | #1 | ||
>>Hi friends...leopard come here with the best regards and some question need your help >>I have just complete converting from CS to XE, but every time a unit cast spells, i get this message: "double free of type: xecast" >>Belows is an example, this idea is simple. Every 0.2 second, a lightning bolt will strike a random enemy unit for up to 6 times...Its fine, right?
>>An other problem...Here is my spell "Nature's Grasp" : Gives a chance to entangle enemy melee units that attack the unit under Nature's Grasp effect. --I do this by: every time a unit attacked, attacked unit has buff Nature's Grasp...then gets a random int and if it meets..order the caster to entangle atacker...But...every time a unit is attacked, i must use : JASS:local xecast xc = xecast.createA() But local must be at the top..so i cant create it after the requirement meet..(15% chance for example) Ok, the code, so you can help me out easily:
>>About JASS:local xecast xc = xecast.createA() >>About spells use periodic time...for example "every 2 seconds, strike a target and after 10 seconds, stop it"...I have to use 2 timer? One for the periodic and one have a 10 seconds timeout to stop it? or there is another easy way? >>I like Dusk, am i a gay ??? I could be very happy if someone could help me...thanks ![]() |
| 09-14-2008, 07:09 AM | #2 |
Anybody there? Are those issues so hard ??? |
| 09-14-2008, 07:56 AM | #3 |
it's because you do this more than one time: call mystruct.destroy() |
| 09-14-2008, 12:20 PM | #4 |
Ok..thanks Ves...but my problem is still unsolved...I did hope that Vex would come this with a clear answer ![]() |
| 09-14-2008, 12:26 PM | #5 | |
Quote:
|
