[SOLVED][HELP] modding

Posts 1–3 of 3 · Page 1 of 1
[SOLVED][HELP] modding
Lets say i want to add an kick menu into a pre existing mod, in this case zombie mod. So if the zombie mod already contains an Init() section and the kick menu also would contain an Init() section, should i then copy the code in the kick menu's Init() section and paste it at the beginning or end at the Init() section in the zombie mod, or can there be 2 Init() sections? Like:

Init()
{
loool
}

Init()
{
kick dude
}

i belive the right one is this

Init()
{
loool
}

{
kick dude
}

i know this was really messed up but i hope u understood what i meant, thx in advance.
Quote Originally Posted by isokasi View Post
Lets say i want to add an kick menu into a pre existing mod, in this case zombie mod. So if the zombie mod already contains an Init() section and the kick menu also would contain an Init() section, should i then copy the code in the kick menu's Init() section and paste it at the beginning or end at the Init() section in the zombie mod, or can there be 2 Init() sections? Like:

Init()
{
loool
}

Init()
{
kick dude
}

i belive the right one is this

Init()
{
loool
}

{
kick dude
}

i know this was really messed up but i hope u understood what i meant, thx in advance.
Nope, there can only be 1 init() in a script because if there are 2, you might get a syntax error.
/marked as solved..I guess..
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us