do not decare 2 ints inside your function. instead pass two int references into your functions.
wait a second. what exactly do you mean by "Passing variables through void"?
Last edited on
basically i need x and y to be randomized once then i need it in many different functions
it can't be a global variable though
i cant think how i would do it
so if x = 1 and y = 4 in function1 then i want "Moss Giant to appear in function2
but for function 3 its going to get the stats of moss giants
i hope this helps you understand what im taking about,
also this is in a .h file that will be loaded to main