View Single Post
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-19-2004 , 14:48  
Reply With Quote #3

A few..
This is going to confuse more people then it will help.
Why.. there's a few errors there.. comments are /* comment */ for one
Comments are not functions either
Your totally wrong about needing braces either
Code:
public plugin_init() register_plugin(...)
is perfectly valid. Braces are only needed with multiple line functions

cs_set_user_model has the wrong syntax (it takes a model name, like "gign" , not a path to a model) and wouldn't work anyway (No precache)

public model_hp_change needs () on the end of it, so it becomes
public model_hp_change()

register_clcmd("C4","donut_function")
register_clcmd("C4","donut_explosion")
... Why would you ever do something like that?

Whats wrong with all the ones linked to here?http://forums.alliedmods.net/showthread.php?p=42838
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline