SA-MP Forums Archive
Cannot Create File - 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: Cannot Create File (/showthread.php?tid=580654)



Cannot Create File - Rissam - 07.07.2015

This is my code it doesnot loads scores
PHP код:

case DIALOG_LOGIN:
        {
            if ( !
response ) return Kick playerid );
            if( 
response )
            {
                if(
udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
                    
GivePlayerMoney(playeridPlayerInfo[playerid][pCash]);
                }
                else
                {
                    
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD,"Login","You have entered an incorrect password.\nType your password below to login.","Login","Quit");
                }
                return 
1;
            }
        } 
When I add the following command to load the score

PHP код:
SetPlayerScore(playeridPlayerInfo[playerid][pScores]); 
it gives error
Quote:

Cannot create file "E\server\gamemodes\mygamemode.pwn''.Access is denied.

It gives me a error in pop-up like this: and don't worry its a harmless file.


Re: Cannot Create File - Rissam - 07.07.2015

please help


Re: Cannot Create File - Rissam - 08.07.2015

help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Re: Cannot Create File - Rissam - 09.07.2015

Don't need help now! I just copied the whole script and compiled it with the new name and It worked.