Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Shield War","1","Poison_Jay");
register_event("CurWeapon","shield","be","1=1")
register_cvar("amx_shieldwar","1");
return PLUGIN_CONTINUE;
}
public shield(id) {
if(get_cvar_num("amx_shieldwar")==0)
return PLUGIN_CONTINUE
public shield(id) {
if(get_cvar_num("amx_shieldwar")==1)
give_item(id,"weapon_shield")
give_item(id,"weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
}
This what i got when compiling....
Quote:
/home/users/amxmodx/tmp/phpZs98RB.sma(15) : warning 217: loose indentation
/home/users/amxmodx/tmp/phpZs98RB.sma(15) : error 029: invalid expression, assumed zero
/home/users/amxmodx/tmp/phpZs98RB.sma(15) : error 001: expected token: ";", but found "{"
/home/users/amxmodx/tmp/phpZs98RB.sma(17) : error 017: undefined symbol "give_item"
/home/users/amxmodx/tmp/phpZs98RB.sma(1 : warning 217: loose indentation
/home/users/amxmodx/tmp/phpZs98RB.sma(1 : error 017: undefined symbol "give_item"
/home/users/amxmodx/tmp/phpZs98RB.sma(19) : warning 217: loose indentation
/home/users/amxmodx/tmp/phpZs98RB.sma(19) : error 017: undefined symbol "give_item"
/home/users/amxmodx/tmp/phpZs98RB.sma(20) : error 017: undefined symbol "give_item"
/home/users/amxmodx/tmp/phpZs98RB.sma(21) : error 017: undefined symbol "give_item"
/home/users/amxmodx/tmp/phpZs98RB.sma(22) : error 017: undefined symbol "give_item"
/home/users/amxmodx/tmp/phpZs98RB.sma(23) : error 017: undefined symbol "give_item"
/home/users/amxmodx/tmp/phpZs98RB.sma(25) : error 001: expected token: "}", but found "-end of file-"
10 Errors.
|