Ok so i got these, a test plugin!
it should print how many times you hited someones leftleg (everybody that round)
Errors:
/home/users/amxmodx/tmp3/textVyTvyi.sma(14) : error 017: undefined symbol "leftleghits"
/home/users/amxmodx/tmp3/textVyTvyi.sma(14) : warning 215: expression has no effect
/home/users/amxmodx/tmp3/textVyTvyi.sma(15) : error 017: undefined symbol "leftleghits"
/home/users/amxmodx/tmp3/textVyTvyi.sma(15 -- 17) : warning 202: number of arguments does not match definition
/home/users/amxmodx/tmp3/textVyTvyi.sma(15 -- 17) : error 001: expected token: ",", but found "}"
Code:
#include <amxmodx>
#include <csx>
public plugin_init(){
register_plugin("Test","test","test")
register_clcmd("Leftleghits","haha")
}
public haha(id){
new stats[8], bodyhits[8], weapon[32]
get_user_vstats(id,0,stats,bodyhits,weapon,31)
leftleghits = bodyhits[HIT_LEFTLEG];
client_print(id ,print_chat ,"%s", leftleghits)
}
why?
__________________