Reading Number from File
#1

So Basicly i'm trying to read a number from a file, and its bringing up 1 error in pawn.
I will label the error.

pawn Код:
LoadNumber()
{
        new File: file = fopen("number.cfg", io_read);
        new string, string2[128];
        fread(file, string); //ERROR / error 035: argument type mismatch (argument 2)
        Number = string;
        format(string2, sizeof(string2), "Number: %d", string);
        print(string2);
        fclose(file);
        return 1;
}
Thats the code without revealing anything of my script.
How would I go about this?
Reply


Messages In This Thread
Reading Number from File - by Deduction - 26.04.2012, 11:52
Re: Reading Number from File - by Niko_boy - 26.04.2012, 12:04
Re: Reading Number from File - by Deduction - 26.04.2012, 12:06

Forum Jump:


Users browsing this thread: 3 Guest(s)