Raised This Month: $ Target: $400
 0% 

register_event("ResetHUD", ....... -resolved again


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
stupok
Veteran Member
Join Date: Feb 2006
Old 09-28-2006 , 18:28   register_event("ResetHUD", ....... -resolved again
Reply With Quote #1

I get the following error when compiling this code:
Code:
(41) : error 035: argument type mismatch (argument 1)
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "ZombieAdder" #define VERSION "1.0" #define AUTHOR "Kamil" new g_pcvarzombies new g_pcvarzombiehp public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     g_pcvarzombies = register_cvar("addzombies", "25")     g_pcvarzombiehp = register_cvar("zombiehp", "300")     register_event("ResetHUD", "zombie_health", "e")         if(get_pcvar_num(g_pcvarzombies))         set_addzombies() } public set_addzombies() {     for (new i = 1; i <= get_pcvar_num(g_pcvarzombies); i++)     {         set_task(float(i) * 0.5, "addzombies")     } } public addzombies() {     server_cmd("addcustombot Zombie Domo 9.9") } public zombie_health(id) {     if(is_user_bot(id))     {         set_user_health(id, get_cvar_num(g_pcvarzombiehp))     }             return PLUGIN_CONTINUE }

Last edited by stupok; 09-28-2006 at 21:53.
stupok is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode