Nerf Ammo Counter... Need Help With Code Please!

Hi, I'm kinda new to arduino and trying to create a 4 digit seven seg pushbutton counter that counts up by one when the button is pressed (ammo counter for nerf gun). I'm using this guy's code and the same display: http://www.element14.com/community/thread/29943/l/arduino-4-digit-7-segment-display-counter and he seems to be having problems too. Anyone got any ideas?

What are YOUR problems?
Show us YOUR code and an image of the circuit you have hooked up.

The link to the page with code is up top, but the display is blinking random numbers and symbols instead of counting up by 1

Here is a short video of my setup and the problem;

IMG_1407.MOV (1.46 MB)

I suspect the segments are not wired to the pins that silviustro's code expects?

Well that's the thing, he claims he's having this problem too

Maybe switch to different code then. For example,

http://playground.arduino.cc/Main/SevenSegmentLibrary

http://playground.arduino.cc/Main/SevenSeg

https://code.google.com/p/mutiplex7seg/

Unfortunately, I don't know how I would add in a pushbutton to those codes

http://arduino-info.wikispaces.com/CombiningArduinoSketches

http://www.thebox.myzen.co.uk/Tutorial/Merging_Code.html

http://en.wikiversity.org/wiki/Arduino_Sketch_Merge

I'll try that, thanks for the suggestions

Is there no way to incorporate or remove something from the original text before I go through with trying to merge two sketches?

Please do not cross-post. Other threads removed.

You can use SN74LS47N IC which is used for 7segments and HD74LS93P as a pulse counter with some circuit . And when You press a push button , 1 pulse is sent and the 7segment (which is 0) becomes 1 . The next time the button is pressed , 2 is shown . After 9 , there are some errors then after pressing 4-5 times it becomes 0 .
The reason behind these errors is that this is designed for 0-14 and after 9 there are some errors which belong to 10-14 .

HD74LS93P

Wouldn't it make more sense to use a decade counter (4017?) ?

AWOL:

HD74LS93P

Wouldn't it make more sense to use a decade counter (4017?) ?

Just copied text from a book . Don't know anything about these - I personally don't like seven segments - I prefer 1602 displays .

PATARDUINO:
Is there no way to incorporate or remove something from the original text before I go through with trying to merge two sketches?

You've reached the limits of what copy-and-pasting someone else's code can accomplish. It's time to learn about how to read a button and how to increment variables then you will have the ability to insert that feature into the display code where it needs to go. Arduino is great for beginners, but at some point you need to learn how to write C code. Or at least read it, so you know what and where to copy/paste.

http://arduino.cc/en/Tutorial/Debounce

http://arduino.cc/en/Tutorial/IfStatement
http://arduino.cc/en/Tutorial/Variables
http://www.arduino.cc/en/Reference/VariableDeclaration
http://arduino.cc/en/Reference/Increment