DFile Problem ..
#1

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.
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)