Hello there can you tell me how can i make an basic array activator ?
I really don't have any idea how to start.
Hope you can help me.
JJCP array activator!
Moderator: Cheaters
-
- Forum Staff
- Posts: 1470
- Joined: November 3rd, 2010, 10:48 am
- Title: Best Player
- Location: Singapore
Re: JJCP array activator!
You should find out what are arrays.
here's a view how arrays look
globals
endglobals
function main takes nothing returns nothing
endfunction
here's a view how arrays look
globals
Spoiler:
Spoiler:
Spoiler:
-
- Newcomer
- Posts: 5
- Joined: May 14th, 2013, 4:13 am
Re: JJCP array activator!
where should i put globals,endglobals and fuction main? it's in end or in the beginning?? Pls tell me in easy way i'm new in learning array What'll i do with this line string Activator=" " should i remove it?
-
- Forum Staff
- Posts: 1470
- Joined: November 3rd, 2010, 10:48 am
- Title: Best Player
- Location: Singapore
Re: JJCP array activator!
Use Find for the following:
globals, endlglobals, function main
note that function main content has to be placed under the local variables.
globals, endlglobals, function main
note that function main content has to be placed under the local variables.
-
- Super Moderator
- Posts: 3196
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: JJCP array activator!
I don't think you understand the meaning of an array.
Tell us what you want specifically as what you are asking doesn't make much sense.
Tell us what you want specifically as what you are asking doesn't make much sense.
-
- Newcomer
- Posts: 5
- Joined: May 14th, 2013, 4:13 am
Re: JJCP array activator!
i just want to make an simple array activator to hide my activator.
so anyone would tried to open my map will try to find what my activator is.
if i want my activator to be like this : "-S2RAWa[49]+S2RAWa[50]+S2RAWa[51]" it's -123
where should i put this line ??
and should i change this line to my declared array :
if SubString(GetEventPlayerChatString(),0,100)==Activator TO if SubString(GetEventPlayerChatString(),0,100)==(array name)
or can you give me a map with an array activator any map will do so i have an guide.
so anyone would tried to open my map will try to find what my activator is.
if i want my activator to be like this : "-S2RAWa[49]+S2RAWa[50]+S2RAWa[51]" it's -123
where should i put this line ??
and should i change this line to my declared array :
if SubString(GetEventPlayerChatString(),0,100)==Activator TO if SubString(GetEventPlayerChatString(),0,100)==(array name)
or can you give me a map with an array activator any map will do so i have an guide.
-
- Forum Staff
- Posts: 1470
- Joined: November 3rd, 2010, 10:48 am
- Title: Best Player
- Location: Singapore
Re: JJCP array activator!
*a guide*aronsaabala wrote:i just want to make an simple array activator to hide my activator.
so anyone would tried to open my map will try to find what my activator is.
if i want my activator to be like this : "-S2RAWa[49]+S2RAWa[50]+S2RAWa[51]" it's -123
where should i put this line ??
and should i change this line to my declared array :
if SubString(GetEventPlayerChatString(),0,100)==Activator TO if SubString(GetEventPlayerChatString(),0,100)==(array name)
or can you give me a map with an array activator any map will do so i have an guide.
Open up JJCP endglobals go to function UnitId2Stringz , that's what they assigned every string of your name into the array.
for example, set S2RAWa[48]="0"
this simply set 0 to be replaced by S2RAWa[48]
What you're asking for is just linking your name up with that array.