Raised This Month: $ Target: $400
 0% 

[Help] ZP 5.0 Human class not working?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mymaqn
Junior Member
Join Date: Jul 2012
Old 07-05-2012 , 15:45   [Help] ZP 5.0 Human class not working?
Reply With Quote #1

I have this code

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zp50_class_human>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}

// Human Attributes
new const humanclass3_name[] = "Gravity human"
new const humanclass3_info[] = "HP-- Gravity---"
new const humanclass3_models[][] = { "leet" }
const 
humanclass3_health 25
const Float:humanclass3_speed 1.0
const Float:humanclass3_gravity 0.4

new g_HumanClassID5

public plugin_prechache ()
{
        
register_plugin ("[ZP] Class: Gravity Human"ZP_VERSION_STRING"ZP Dev Team")
        
g_HumanClassID5 zp_class_human_register (humanclass3_namehumanclass3_infohumanclass3_healthhumanclass3_speedhumanclass3_gravity);
        new 
index
        
for (index 0index sizeof humanclass3_modelsindex++)
            
zp_class_human_register_model(g_HumanClassID5humanclass3_models[index])

.. and for some reason when I compile it and get the amxx file and put it in the plugins folder and add it in the plugins.ini it is not working? Is my code wrong somewhere? Please help me I am new at this

Kind regards
Mymaqn

Edit: I posted the thread here because I didn't know where else to put it

Last edited by Mymaqn; 07-05-2012 at 16:00.
Mymaqn 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 15:21.


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