wc3edit.net

United Warcraft 3 map hacking!
It is currently July 19th, 2018, 5:32 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: February 7th, 2018, 2:25 am 
Offline
Newcomer

Joined: January 17th, 2018, 3:49 am
Posts: 4
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.


Top
 Profile  
 
PostPosted: February 8th, 2018, 4:58 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3784
Location: JEW LAND
next time use the {code} bracket so we can read without download. like so
Code:
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,

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"


Top
 Profile  
 
PostPosted: February 10th, 2018, 8:36 am 
Offline
Newcomer

Joined: January 17th, 2018, 3:49 am
Posts: 4
thank you. I'm learning jass and my english is bad


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)