Posts: 226
Threads: 6
Joined: Jan 2013
Reputation:
0
"Weapon" array size is 2, "Ammo" array size is 25, but both of them are used in "for" loop with 12 iterations (using iteration number as array index). Did you run this code at least once?
Posts: 937
Threads: 69
Joined: Dec 2009
Reputation:
0
This is a bad way of doing that. You can simple use SetPlayerArmedWeapon( playerid, 0 ); which basically sets the players weapon to fist; you don't need to mess with weapon savings and that kind of stuff.
Also if you are concerned about someone spawning a weapon by cheating, just check if player is firing ( check if the fire key is pressed, doesn't require a timer either ) and apply SetPlayerArmedWeapon again. Simple, ain't it?
Posts: 586
Threads: 14
Joined: Aug 2015
Reputation:
0
Sure you can use 99999999999999999
Posts: 171
Threads: 13
Joined: Dec 2015
Nice
+Rep