Writing multiple strings into one message
#9

I don't use variables to display or save the name.

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);
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.
Reply


Messages In This Thread
Writing multiple strings into one message - by EV007 - 30.10.2012, 14:15
Re: Writing multiple strings into one message - by EV007 - 30.10.2012, 15:01
Re: Writing multiple strings into one message - by tyler12 - 30.10.2012, 15:43
Re: Writing multiple strings into one message - by EV007 - 30.10.2012, 16:25
Re: Writing multiple strings into one message - by EV007 - 31.10.2012, 07:30
Re: Writing multiple strings into one message - by Wayn - 31.10.2012, 09:09
Re: Writing multiple strings into one message - by EV007 - 31.10.2012, 12:15
Re: Writing multiple strings into one message - by Unte99 - 31.10.2012, 12:30
Re: Writing multiple strings into one message - by EV007 - 31.10.2012, 12:39
Re: Writing multiple strings into one message - by Unte99 - 31.10.2012, 12:57

Forum Jump:


Users browsing this thread: 4 Guest(s)