I still havn't figured it out :(
Type: Posts; User: xxwerdxx
I still havn't figured it out :(
heres what i came up with, still not working
the structure
//structure to return values
struct att fn();
{
int hpr;
int mpr;
thanks, that clears up a lot about structures, but i dont know how i would use that to return the values of the attackmenu
Heres what i got using pointers, and it still dosn't display it in the stats screen after the fight. I looked into structues also, but didn't understand them so i tryed this. Any ideas of what I did...
cant believe i didnt think of that,thanks. now im having a problem returning values in the attack function. do I need to use pointers for that or something? trying to return hp,mp,and exp.
Alright, ill look into those. Thanks a lot for all the help. I use dev-c++ which did the spacing for me tho :)
last thing I dont know how to do. Ive tryed it in various games and cant figure it...
thanks spy, ill look into that. what you said fixed the menu problem, but now i have one when using the attack menu. after i attack it takes me to the stats menu instead of back to the attack menu so...
here it is, kind of long
Code:
#include<stdio.h>
#include<stdlib.h>
//attack function
int attackm(int,int,int,int,int,int,int,int,int,int);
here it is, kind of long
#include<stdio.h>
#include<stdlib.h>
//attack function
int attackm(int,int,int,int,int,int,int,int,int,int);
thanks,now to get the range higher I would just add more then 1 correct?
here is my program
#include<stdio.h>
#include<time.h>
main() {
float i,r;
srand( time( 0 ) );
how would i get something like
char something[20]
to equal a name when something occurs in my program. like if the user typed 1 (just an example), the char something[] would equal the string...
hello all, need help with a text rpg (using c)
how would i get it so whenever a person enters i at any point in the game, it would display the persons inventory? thanks in advance
hi i just made a program to practice random numbers because im new :). i get different numbers each time, but every time i run the program they are the same numbers each time. anyone know the...
yes i have cmd.exe in windows. i searched for it and it came up, tryed to click it and received the same message.
i think it has something to do with me not being able to run dos files.. i dont...
when i try to run cmd.exe it says "windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access this item. I am on the administrator account, so i...
my computer for some reason cant run batch files. i cant even run the cmd.exe from the start>run. i dont no what my problem is, i have looked at many sites and have found no help, and i need to be...