script error

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

script error

Post by JustANewbie »

parse failed:1 error total

what is wrong with this?

Spoiler:
local unit c=LoadUnitHandle(HS,GetHandleId(z),0)
local unit t=LoadUnitHandle(HS,GetHandleId(z),1)
local integer AH=LoadInteger(HS,GetHandleId(z),0)
local real a=LoadReal(HS,GetHandleId(z),1)
local real r=((GetUnitAbilityLevel(c,'A008')*200)+400)+((GetUnitAbilityLevel(c,'A008')+3)*(GetHeroAgi(c,true))
User avatar
KangTooJee
Old Wrinkly Member
Posts: 202
Joined: September 15th, 2010, 5:09 am
Title: Legenda

Re: script error

Post by KangTooJee »

try put one more ")" at the end
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: script error

Post by JustANewbie »

then when i use jasscraft to check syntax, it says "missing ) at the end" if i put

if like this then nothing wrong

Code: Select all

local real r=(GetUnitAbilityLevel(c,'A008')*200)+400


like this also no error

Code: Select all

local real r=(GetUnitAbilityLevel(c,'A008')+3)*GetHeroAgi(c,true)


conclusion: no error if i separate them, error when i combine them, so how could i combine them?
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: script error

Post by JustANewbie »

no more error now o.o

i doesn't change anything? weird