Forum

> > CS2D > Scripts > zombie classes and Forum
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch zombie classes and Forum

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt zombie classes and Forum

Spook MQ Hacker
BANNED Off Offline

Zitieren
Guys Guys Guys Test my Script There is an ERROR

Spoiler >

alt Re: zombie classes and Forum

CmDark
User Off Offline

Zitieren
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..)

alt Re: zombie classes and Forum

MikuAuahDark
User Off Offline

Zitieren
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 >

alt Re: zombie classes and Forum

MikuAuahDark
User Off Offline

Zitieren
oww ok, here will go:
Spoiler >

alt Re: zombie classes and Forum

DannyDeth
User Off Offline

Zitieren
user MikuAuahDark hat geschrieben
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!

alt Re: zombie classes and Forum

Apache uwu
User Off Offline

Zitieren
@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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht