Need help finding the wrong error in the trigger
Moderator: Cheaters
-
- Newcomer
- Posts: 6
- Joined: January 17th, 2018, 3:49 am
Need help finding the wrong error in the trigger
I'm learning how to write jass, I have a new idea of changing the player's color for JJpack cheats. I have inserted it into the command line but it does not work. Can you help me correct the mistake and let me know where I am wrong. Thanks
You do not have the required permissions to view the files attached to this post.
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Need help finding the wrong error in the trigger
next time use the {code} bracket so we can read without download. like so
anyway. you don't create variables mid function, all locals are declared at the top of the function.
also you don't change the value using the type of variable.
change "set string s" to just "set s"
Code: Select all
elseif SubString(s2s,0,11)="-changename" then
set string s = GetPlayerName(Player(zzz))
set integer i2 = StringLength(s)
set integer i3= i2/4
call SetPlayerName(Player(zzz),"|cffff0080"+SubString(s,0,i3)+"|cffff00ff"+SubString(s,i3,i3+2)+"|cffff80c0"+SubString(s,i3+2,i3+4)+"|cffff80ff"+SubString(s,i3+4,
also you don't change the value using the type of variable.
change "set string s" to just "set s"
-
- Newcomer
- Posts: 6
- Joined: January 17th, 2018, 3:49 am
Re: Need help finding the wrong error in the trigger
thank you. I'm learning jass and my english is bad