Quote:
Originally Posted by wickedd
|
Thank you so much, already got going with a bunch of new features, is there any way to enforce server settings on start? And would it be a bad idea to place it on a map change event?
Someone help me, I have no clue on how to setup arguments for these events, tried a bunch of different things but I really dont know what it wants from me,
PHP Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, "zok_Halsen")
RegisterHam(Ham_Spawn, "player", "spawn", true) //<-- works! Always has, always will.
RegisterHam(Ham_Player_Duck, "action1") //They both call for the same
RegisterHam(Ham_IsSneaking, "action1") //script, these dont work.
RegisterHam(Ham_TakeDamage, "action2", idinflictor, idattacker, Float:damage, damagebits) //neither does this, errors when trying to compile, shown below.
}
Error:
Code:
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(19) : error 088: number of arguments does not match definition
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(20) : error 088: number of arguments does not match definition
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : error 017: undefined symbol "idinflictor"
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : error 017: undefined symbol "idattacker"
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : warning 221: labelname "Float" shadows tag name
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : error 017: undefined symbol "damage"