PDA

View Full Version : DFile Problem ..


GuyYahood1
08/03/2014, 11:58 AM
Hello,

I got this error:
warning 209: function "dfile_Open" should return a value

This the line:

if(dfile_Open(ViPMainFile))
{
if(!strcmp(tmp,dfile_ReadString("APassword"),false))
{
ALogged[playerid] = 1;
SendClientMessage(playerid,COLOR_GREEN,".התחברת למערכת האדמינים בהצלחה");
format(string,256,AdminMessage);
SendClientMessage(playerid,COLOR_RED,string);
dfile_CloseFile();
}
else
{
SendClientMessage(playerid,COLOR_RED,".סיסמא שגויה, במידה ושכחת את הסיסמא פנה להנהלה הגבוהה"),dfile_CloseFile();
dfile_CloseFile();
}
return 1;
}


Thanks you.

Misiur
08/03/2014, 12:36 PM
http://forum.sa-mp.com/showthread.php?t=218026

Check out the "test script" section. dfile_Open doesn't return any value, so you can't check use it in a boolean expression.