Advertisement
Guest User

...

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