hi these are the errors i get
Code:
L 05/25/2006 - 17:02:24: Invalid weapon id 0
L 05/25/2006 - 17:02:24: [AMXX] Displaying debug trace (plugin "realmod.amxx")
L 05/25/2006 - 17:02:24: [AMXX] Run time error 10: native error (native "get_user_ammo")
L 05/25/2006 - 17:02:24: [AMXX] [0] realmod.sma::ammo (line
and this is the part of the code
Code:
public ammo(id){
new weapon1, clip1, ammo1
get_user_ammo(id, weapon1, clip1, ammo1)
if(get_user_weapon(id,clip1,ammo1)){
client_print(id,print_chat,"[RealMod] You have about %i amount of ammo and %i amount of clips left",ammo1,clip1)
}
return PLUGIN_HANDLED
}
whenever i call public ammo it shows the errors