Reading Number from File
#2

firstly i twill be like Number = strval(string);
secondly u used that var to carry string value but u never actualy used it ?
and about error
fix:==
new string[128];
then at to take it as integer do new var;
var = strval(string);
^ var here will be "Number"
na leave it >>> see this the fix
pawn Код:
LoadNumber()
{
        new File: file = fopen("number.cfg", io_read);
        new string[128], string2[128], Number;
        fread(file, string); //ERROR / error 035: argument type mismatch (argument 2)
        Number = strval(string);
        format(string2, sizeof(string2), "Number: %d", Number);
        print(string2);
        fclose(file);
        return 1;
}
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: 2 Guest(s)