SA-MP Forums Archive
help error - 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: help error (/showthread.php?tid=567106)



help error - capottematias - 11.03.2015

help me with this error


Код:
  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
thx


Re: help error - Schneider - 11.03.2015

If you would have used proper indentation (as the first warning already suggests to you) you would see the mistake right away.


AW: help error - Kaliber - 11.03.2015

You forgot a bracket, write it like this:

PHP код:
//...was missing
case DIALOG_EMAIL
Greekz