Hi there, i need your help now.
Lets look at my menu's case 4(which give glock).
PHP Code:
case 4: { //menu option 5 -- glock with 10 ammo
give_item(id, "weapon_glock18"); // gives the glock18 pistol to a player
cs_set_user_bpammo(id, CSW_GLOCK18, 0); // we set backpack ammo to 0
cs_set_weapon_ammo(id, 10);
...
}
Allright, the ... mean nothing to the code that sets the ammo.
So i've succesfully gave myself a nice glock18.
Also successfully set my back pack ammo to 0.
But when i try to set the weapons, hmm primary ammo?, it spits an error whilst in debug.
Look:
Code:
[AMXX]Run time error 10: native error (native "cs_set_weapon_ammo")
Did i use it wrong, please help me if you can since i don't know anything about the primary ammo