Tag mismatches
#1

Why do i get a tag mismatch on each of these lines?

Код:
new file:mefile=fopen("file.txt",io_read);
Код:
fread(mefile,tmp2,sizeof(tmp2));
Код:
fclose(mefile);}
Код:
new shownum = floatstr(tmp2)+0.005;
i got tmp2 defined:
Код:
new tmp2[300];
does anyone know how to get these tag mismatches away?
Reply
#2

new file:mefile=fopen("file.txt",io_read);
Reply
#3

?.. no changes?
Reply
#4

File != file
Reply
#5

new File !=mefile=fopen("file.txt",io_read); wont work. and no capital
Reply
#6

You don't get it.
This is yours (wrong):
pawn Код:
new file:mefile=fopen("file.txt",io_read);
And this is how it should be:
pawn Код:
new File:mefile=fopen("file.txt",io_read);
f is not F.
Reply
#7

Quote:
Originally Posted by thuron
new File !=economyfile=fopen("Economy.txt",io_read); wont work. and no capital
You misunderstood what he said. He didn't mean that you should do !=, he meant that File is not file (not equal = !=).
pawn Код:
new File:mefile=fopen("file.txt",io_read);
Reply
#8

ok, ty. got only 1 more now. on this line:

Код:
new shownum = floatstr(tmp2)+0.005;
Reply
#9

Define shownum as float:
pawn Код:
new Float:shownum = floatstr(tmp2)+0.005;
Reply
#10

ah, many thankys to y'all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)