SA-MP Forums Archive
DFile Problem .. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DFile Problem .. (/showthread.php?tid=499471)



DFile Problem .. - GuyYahood1 - 08.03.2014

Hello,

I got this error:
PHP код:
warning 209: function "dfile_Open" should return a value 
This the line:
PHP код:
         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.


Re: DFile Problem .. - Misiur - 08.03.2014

https://sampforum.blast.hk/showthread.php?tid=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.