Код:
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESS, DIALOG_STYLE_MSGBOX,"Listo", "Tu cuenta a sido logueada","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", "\nHas introducidouna clave invalida.\nEscribe tu clave para loguearte.","Login","Quit");
}
}
case DIALOG_EMAIL: // ======= here is the error ===/
{
if(response)
{
if(strfind(inputtext, "@", true) != -1 && strfind(inputtext, ".", true) != -1)
{
if(!EmailAvaliable(inputtext)) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Registro", "Este correo ya estб en uso.\nIntйntelo de nuevo con un correo\nalternativo.", "Reintentar", "");
Код:
F:\MIGM\MIGM\gamemodes\MATI.pwn(13809) : warning 217: loose indentation
F:\MIGM\MIGM\gamemodes\MATI.pwn(13809) : error 014: invalid statement; not in switch
F:\MIGM\MIGM\gamemodes\MATI.pwn(13809) : warning 215: expression has no effect
F:\MIGM\MIGM\gamemodes\MATI.pwn(13809) : error 001: expected token: ";", but found ":"
F:\MIGM\MIGM\gamemodes\MATI.pwn(13809) : error 029: invalid expression, assumed zero
F:\MIGM\MIGM\gamemodes\MATI.pwn(13809) : fatal error 107: too many error messages on one line
If you would have used proper indentation (as the first warning already suggests to you) you would see the mistake right away.