Oh yeah sorry about that :p
void askUserQuestion( int guessNumber, char* question, int* animalData )
{
char buffer[ BUFFER_SIZE ];
int index;
int selectionCriteria;
Type: Posts; User: Nexus-ZERO
Oh yeah sorry about that :p
void askUserQuestion( int guessNumber, char* question, int* animalData )
{
char buffer[ BUFFER_SIZE ];
int index;
int selectionCriteria;
Ok i did that but it still gives me the same warning msg of a comparison between an pointer and an integer, and wont let me compile.
Ok i got some errors, it seems that my if statement is making an comparison between an pointer and an integer.
Also the 'askUserQuestion()' has to few arguments.
if ( buffer == 'y' || buffer...
Its just a char
Ok this is what ive come with so far, i no its not complete but tell if im going in the right direction or not
if ( buffer == 'y' || buffer == 'n' || buffer == 'q' );
{
else
printf...
K i understood that, so how would i go about making it so that wat is in is true?
Nevermind ive done it now.
What i did was make a new function..............
int quitGame()
{
int quit = 0;
char buffer[ BUFFER_SIZE ];
LoL what are you trying to imply :D
Listen i already knew all that, and ive tried to implement it but some reason all i get is errors which is why im here!
Yeah i looked at that, but its not what im after. I just want it so that when i press my exit key (q) the game just shuts down. I know its a loop i need, but i havent been able to make any work.
...
Im only a beginner so i dont really understand most of what you have put there. I only need to know how to put in a quit function that i can activate anytime anywhere in my program.
Hi everyone, ive got a couple of problems with my code. I trying to add functinality to my program but it isnt going well.
What i want to do is to be able to quit or restart my game at anytime. I...
That worked thank you, but it still hasnt solved my main dilemma. How do get it to only accept user name that i have on my file?
Yeah i vaguely remember being there lol
I changed it but now it just skips throught the login bit and back to the main menu. Does anyone know how to stop it doing this.
int Login(int* user)
{
char s[80];
FILE * db;
db...
Ok ive change my based on the suggestions i got. I just need to know how to set it so that it only accepts the user names in my txt file. (change the indentation once i get it working!)
int...
Right newbie here! Im am tyring to write some code that will read a file i already have and check a login name against what is on file. Then i need it to give an error warning if the name is not...
What i want is to be able to jump back to the main menu in main from the registration function. I thought return would allow me to do it, but i was wrong.
#include <stdio.h>
#include <math.h>...
Newbie here! I was wondering if it is possible to jump back to a previous function in a program and if it is how would one go about doing it?
Hiya everyone, i have a problem ive been trying to write to a file but when i open that file its empty. The programs builds so ive come to the conclusion that im missin something or i have written it...
OMG! DaveH, Lazerlight your gods among men! Sorry for being annoying and thanks for your help!
Although saying that, ill be back soon with brand new questions lol.
Ok i did that, but it came up with more errors.
On line 6: previous declaration of 'Login'
On line 22: warning passing arg 1 of 'Login' make interger from a pointer without a cast
On line 44:...
Sorry to keep bothering you guys but i cant get rid of this error. On line 22 i keep getting a parse error before "int", i dont understand what im doing wrong.
#include <stdio.h>
#include...
Sorry about that! I've just sorted most of the errors now i only have one. This what i have done so far.
It seems to be having a problem with my if statement.
ERRORS
Line 20: parse error before...
Ok done what was said, but it gave me even more problems
Sorry mate that hasnt solved it.