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(id, armor + 50)
cs_set_user_health(id, health*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
9: invalid expression, assumed zero
// C:\Documents and Settings\*****\Desktop\compiler\battlesuit.sma(22) : warning
203: symbol 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?
__________________