Need hel with MSQL.
#1

Hello, i'm knew with MSQL, i am trying to do ar registration and login, but i get one error on dialog. Error Says:

Код:
(2436) : warning 225: unreachable code
(2436) : error 029: invalid expression, assumed zero
(2436) : warning 215: expression has no effect
(2436) : error 001: expected token: ";", but found "if"
here's the script on dialog:

Код:
if(dialogid == 0) //Jei dialogid bus lygus 0
    {
        new vardas[MAX_PLAYER_NAME], string[180];
  		GetPlayerName(playerid, vardas, sizeof(vardas));
        if(response)
        {
            if(SaskYra[playerid])
              		   format(string, sizeof(string), "{FFFFFF}Zaidejas {FFAF00}%s {FFFFFF}yra registruotas.\n{FFFFFF}Iveskite slaptazodi noredami prisijungti:",vardas);
        		return ShowPlayerDialog(playerid,200,DIALOG_STYLE_INPUT,"{A3E4FF}Prisijungimas",string,"Prisijungti","Atsaukti");

		    else if(!SaskYra[playerid]) // the error line
                      format(string, sizeof(string), "{FFFFFF}Zaidejo {FFAF00}%s {FFFFFF}registracija.\n{FFFFFF}Iveskite norima slaptazodi:",vardas);
				return ShowPlayerDialog(playerid,201,DIALOG_STYLE_INPUT,"{A3E4FF}Registracija",string,"Registruotis","Atsaukti");
        }
        else
        {
            SendClientMessage(playerid, raudona, "[FunZoneLT]>> Jus turite sutikti su taisyklemis, pries zaidziant!");
            Kick(playerid);
        }
    }
Does anyone know whats the problem?
Reply
#2

pawn Код:
if(dialogid == 0) //Jei dialogid bus lygus 0
    {
        new vardas[MAX_PLAYER_NAME], string[180];
        GetPlayerName(playerid, vardas, sizeof(vardas));
        if(response)
        {
            if(SaskYra[playerid])
                       format(string, sizeof(string), "{FFFFFF}Zaidejas {FFAF00}%s {FFFFFF}yra registruotas.\n{FFFFFF}Iveskite slaptazodi noredami prisijungti:",vardas);
                return ShowPlayerDialog(playerid,200,DIALOG_STYLE_INPUT,"{A3E4FF}Prisijungimas",string,"Prisijungti","Atsaukti");

            else if(SaskYra[playerid] == 0) // the error line
                      format(string, sizeof(string), "{FFFFFF}Zaidejo {FFAF00}%s {FFFFFF}registracija.\n{FFFFFF}Iveskite norima slaptazodi:",vardas);
                return ShowPlayerDialog(playerid,201,DIALOG_STYLE_INPUT,"{A3E4FF}Registracija",string,"Registruotis","Atsaukti");
        }
        else
        {
            SendClientMessage(playerid, raudona, "[FunZoneLT]>> Jus turite sutikti su taisyklemis, pries zaidziant!");
            Kick(playerid);
        }
    }
I presume you want to check if the var SaskYra[playerid] is 0
Reply
#3

Exact same error :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)