Raised This Month: $ Target: $400
 0% 

Problems with my battlesuit plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 01-02-2010 , 18:19   Problems with my battlesuit plugin
Reply With Quote #1

I have no clue what went wrong in the compile and i dont know how to fix the errors. Please help!

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

register_plugin(Battlesuit,r4nDoMz,1.0);

new 
health get_user_health()
new 
armor get_user_armor()
//new maxspeed = get_user_maxspeed()

public plugin_init()

public 
client_putinserver()
{
    if( 
is_user_alive() ){
        
//set_user_gravity (id, 0.625)
        
cs_set_user_armor(idarmor 50)
        
cs_set_user_health(idhealth*1.5)
        
//cs_set_user_maxspeed(id, maxspeed + 100)
    
}

Errors:

//AMXXPC compile.exe
// by the AMX Mod X Dev Team


PHP Code:
//// battlesuit.sma
// C:\Documents and Settings\*****\Desktop\compiler\battlesuit.sma(6) : error 021
symbol already defined"register_plugin"
// C:\Documents and Settings\*****\Desktop\compiler\battlesuit.sma(14) : error 02
9invalid expressionassumed zero
// C:\Documents and Settings\*****\Desktop\compiler\battlesuit.sma(22) : warning
203symbol is never used"client_putinserver"
//
// 2 Errors.
// Could not locate output file C:\Documents and Settings\*****\Desktop\compiler\
compiled\battlesuit.amx (compile failed).
//
// Compilation Time: 0.23 sec
// ----------------------------------------

Press enter to exit ... 
Also, how would i make it so only users with their steamid in a .txt file can get the bonus?
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME

Last edited by r4ndomz; 01-02-2010 at 18:24.
r4ndomz is offline
Send a message via Skype™ to r4ndomz
 



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


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