Fread problem.
#1

hello, there,

Can any one figure why I have these problems?

PHP код:
stock CheckContacts(playerid)
{
    new 
contact[128];
    new 
str[128];
    new 
temp strlen(str) >= 10;
    for(new 
0i<MAX_PLAYERSi++)
    {
        
format(contact128,"LV-RP/%s/Contacts/%s.ini"GetPlayerNameEx(playerid), i);
        new 
File:file fopen(contactio_read);
        while(
fread(contactstr))//error 035: argument type mismatch (argument 1)
        
{
             if(
strcmp(filetemptrue) == 0)//error 035: argument type mismatch (argument 2)
            
{
                return 
1;
            }
            else {
                return 
0;
            }
        }
    }
    return 
1;

Errors/warnings
Код:
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
warning 204: symbol is assigned a value that is never used: "file"
warning 204: symbol is assigned a value that is never used: "temp"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Note: I tagged the errors in the code
Reply


Messages In This Thread
Fread problem. - by Youice - 25.01.2013, 17:52
Re: Fread problem. - by IPrototypeI - 25.01.2013, 19:51
Re: Fread problem. - by Roach_ - 25.01.2013, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)