You could try reading what was written where you got that code :
Quote:
BTW - I don't think C has a boolean type so you can define one for yourself, along with true and false values.
You also need to define a
PlayerData
structure.
I will repeat myself,
you need to define a
PlayerData
structure. If you are not ready to define and use data structures then you should not use that function and you should step back and learn the language more thoroughly. The alternative is to a use pile of global variables and that is a terrible idea.