25.01.2013, 17:52
hello, there,
Can any one figure why I have these problems?
Errors/warnings
Note: I tagged the errors in the code
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 i = 0; i<MAX_PLAYERS; i++)
{
format(contact, 128,"LV-RP/%s/Contacts/%s.ini", GetPlayerNameEx(playerid), i);
new File:file = fopen(contact, io_read);
while(fread(contact, str))//error 035: argument type mismatch (argument 1)
{
if(strcmp(file, temp, true) == 0)//error 035: argument type mismatch (argument 2)
{
return 1;
}
else {
return 0;
}
}
}
return 1;
}
Код:
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.