Raised This Month: $ Target: $400
 0% 

need help with error (array index out of bounds)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 04-03-2005 , 17:38  
Reply With Quote #2

Code:
//------------Source Code----------- //Vampire Mod //By Zidd //A Version Half-life engine version of an unreal tournament mutator #include <amxmodx> #include <amxmisc> #include <fun> public plugin_init () {     register_plugin("Vampire Mode", "0.01", "Zidd")     register_clcmd("amx_vampire", "vampire",  ADMIN_BAN, " : Sets Vampire Mode")   } public vampire (id) {           new makekill=get_user_frags( id )     new health=get_user_health( id ) // What Should Happen When You Reach 1 HP     if ( health == 1 ) {     client_print (1,print_center,"You Thirst For Blood Go Get Some Kills For More HP!")     set_task (0.5,"vampire",id)     return PLUGIN_HANDLED     } //What Should Happen When You Have More Than 1 HP     if (health < 1) {         set_user_health (id,(health-1))         set_task (0.5,"vampire",id)         return PLUGIN_HANDLED               } //What Should Happen When You Get A Kill     if (makekill +1) {         set_user_health (id,(health+=10))         client_print (1,print_center,"You Get 10HP For The Kill You Just Made")         set_task (0.5,"vampire",id)         return PLUGIN_HANDLED               }       return PLUGIN_HANDLED         }
but i don't think that's how you get the kill, lemme post another post in a sec showing how you do it
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
 



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 09:57.


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