Errors (Help!)
#1

Hi ! Please help! I got some errors

Код:
(1317) : error 001: expected token: "-string end-", but found "-identifier-"
(1317) : warning 215: expression has no effect
(1317) : error 001: expected token: ";", but found "-string-"
(1317) : warning 215: expression has no effect
(1317) : warning 215: expression has no effect
(1317) : warning 215: expression has no effect
(1317) : error 001: expected token: ";", but found ")"
(1317) : fatal error 107: too many error messages on one line
Код:
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if ( !response ) return Kick( playerid );
            if( response )
            {
                if( !strlen ( inputtext ) ) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Welcome.Please log-in","You have entered an "RED"invalid"WHITE" password\n"WHITE"Type your "GREEN"password "WHITE"here to log-in",#Register,#Quit);
                DOF2_CreateFile( USER_FILE ( playerid ), inputtext );
                DOF2_SetInt( USER_FILE ( playerid ), "Kills", 0);
                DOF2_SetInt( USER_FILE ( playerid ), "Deaths", 0);
                DOF2_SetInt( USER_FILE ( playerid ), "Money", 1000);
                DOF2_SetInt( USER_FILE ( playerid ), "AdminLevel", 0);
                DOF2_SaveFile();
                SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
                SpawnPlayer( playerid );
                GivePlayerMoney(playerid, 1000);
            }
        }
	}
        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick( playerid );
            if( response )
            {
                if( DOF2_CheckLogin( USER_FILE( playerid ), inputtext ) )
                {
                    Load_Player_Stats(playerid);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login","You have entered an "RED"incorrect "WHITE"password.\n{FFFFFF}Type your "GREEN"password "WHITE"below to login.",#Log-in,#Quit);
                }
    return 1;
}
1317 error line is:
Код:
if( !strlen ( inputtext ) ) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Welcome.Please log-in","You have entered an "RED"invalid"WHITE" password\n"WHITE"Type your "GREEN"password "WHITE"here to log-in",#Register,#Quit);
Reply
#2

Now i have typed #include <Double-O-Files_2>

I got the error (7) : fatal error 100: cannot read from file: "Double-O-Files_2" now
Reply
#3

instread of #Register & #Quit, use "Register" & "Quit". Complete line would be

pawn Код:
if( !strlen ( inputtext ) ) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Welcome.Please log-in","You have entered an "RED"invalid"WHITE" password\n"WHITE"Type your "GREEN"password "WHITE"here to log-in","Register","Quit");
Reply
#4

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
instread of #Register & #Quit, use "Register" & "Quit". Complete line would be

pawn Код:
if( !strlen ( inputtext ) ) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Welcome.Please log-in","You have entered an "RED"invalid"WHITE" password\n"WHITE"Type your "GREEN"password "WHITE"here to log-in","Register","Quit");
I got those errors now :
Код:
(1318) : error 001: expected token: "-string end-", but found "-identifier-"
(1318) : warning 215: expression has no effect
(1318) : error 001: expected token: ";", but found "-string-"
(1318) : warning 215: expression has no effect
(1318) : warning 215: expression has no effect
(1318) : warning 215: expression has no effect
(1318) : error 001: expected token: ";", but found ")"
1319) : fatal error 107: too many error messages on one line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)