31.10.2012, 12:39
I don't use variables to display or save the name.
I'm getting somewhere, tried messing around with the string sizes a bit, but it's not really working as I expect it to since I just started with this function and haven't figured out how it works yet. Can you give me a hint on what I should be focusing? It prints out 3lines,each one has a part of the name that's written in the file and the string size keeps getting lower during each line display.
pawn Код:
new nicks;
new name[100];
new File:pipfile = fopen(string, io_read);
nicks = fblockread(pipfile, name, 100);
if(nicks > 0)
{
printf("Nicks red: %d",nicks);
}
for (new i = 0; i < 6; i++)
{
printf("%s", name[i]);
}
fclose(pipfile);