Forum

> > CS2D > Scripts > zombie classes and Forum
Forums overviewCS2D overview Scripts overviewLog in to reply

English zombie classes and Forum

7 replies
To the start Previous 1 Next To the start

old zombie classes and Forum

Spook MQ Hacker
BANNED Off Offline

Quote
Guys Guys Guys Test my Script There is an ERROR

Spoiler >

old Re: zombie classes and Forum

CmDark
User Off Offline

Quote
Why yes, there is an error or 2 or 3...

For one, why did you put
classes.classmenu(id) ?
It's not defined in this script as a function anywhere
Second problem: You added an end... after the menu... which you put in a random spot that makes no sense.
Again, you try to use classmenu when there is no function named classmenu or classes.classmenu.
Lastly, you didn't bother putting an end for samples.classes.spawn (I don't know how you edited this so much that it lost the end..)

old Re: zombie classes and Forum

MikuAuahDark
User Off Offline

Quote
many error:
1. don't make a hook and your function name is same with that hook
2. the spawnhook. Never use sample.classes.funcname at function spawn name and another function, because it cause errors!!!
3. and more error
your new script:
Spoiler >

old Re: zombie classes and Forum

MikuAuahDark
User Off Offline

Quote
oww ok, here will go:
Spoiler >

old Re: zombie classes and Forum

DannyDeth
User Off Offline

Quote
user MikuAuahDark has written
many error:
1. don't make a hook and your function name is same with that hook

ROFLMFAO! You can have a function with the same name as the hook!! Haha! That won't cause any errors whatsoever!

old Re: zombie classes and Forum

Apache uwu
User Off Offline

Quote
@user DannyDeth: I think he said don't do this:

1
2
3
4
addhook("say","say")

function say()
end

It works but he's right to object to that. Overwriting hooks is bad practice because there are hooks that will mess up public functions--such as parse, menu, etc.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview