05.04.2013, 12:33
Hi ! Please help! I got some errors
1317 error line is:
Код:
(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; }
Код:
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);