Cannot Create File
#1

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

please help
Reply
#3

help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)