Spawn event/hamsandwich.inc error!
Hi there,
I just started learning some basic scripting and i wanted to catch the spawn event. First i registered the "ResetHud" event but the plugin didn't work, nothing happened on spawn,, see source code: PHP Code:
Quote:
I'd really appreciate help!:) /Simpler |
Re: Spawn event/hamsandwich.inc error!
I solved the first problem myself. I wrote "ResetHud" instead of "ResetHUD" :oops:
Anyways i still need to know why i get errors from the hamsandwich.inc, thanks! |
Re: Spawn event/hamsandwich.inc error!
You're doing it wrong.
Code:
|
Re: Spawn event/hamsandwich.inc error!
Put #include <amxmodx> first.
|
Re: Spawn event/hamsandwich.inc error!
Quote:
Quote:
|
Re: Spawn event/hamsandwich.inc error!
ResetHUD isn't for spawn. It gets called when you spawn, but not only then, so use Ham.
|
Re: Spawn event/hamsandwich.inc error!
Quote:
|
Re: Spawn event/hamsandwich.inc error!
Thanks alot for the help, i get the point now :)
|
| All times are GMT -4. The time now is 01:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.