Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tom@tom-MS-16F1:~/Documents/Advenuture/Tiny Text Adventure$ gcc main.c
- In file included from main.c:5:0:
- Functions.h: In function ‘load_btl’:
- Functions.h:21:32: error: expected statement before ‘)’ token
- while(fgets(c,256,fp) != NULL)){
- ^
- Functions.h:23:27: warning: assignment makes integer from pointer without a cast [enabled by default]
- if (data_lvl == 0){name = c;}
- ^
- Functions.h:24:29: warning: assignment makes integer from pointer without a cast [enabled by default]
- if(data_lvl == 1){caption = c;}
- ^
- Functions.h:25:24: warning: assignment makes integer from pointer without a cast [enabled by default]
- if(data_lvl == 2){hp = c;}
- ^
- Functions.h:26:25: warning: assignment makes integer from pointer without a cast [enabled by default]
- if(data_lvl == 3){lvl = c;}
- ^
- Functions.h:29:1: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
- printf("%s", hp);//testing
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement