error 078: function uses both "return" and "return <value>"
#1

Hello to all,

I have this error
PHP код:
error 078: function uses both "return" and "return <value>" 
And i dont have idea how to fixed, i tryed to put return 1; but it didnt work

PHP код:
        if(dialogid == DIALOG_DRIVELIC)
        {
           if(!
response) return 1;
            switch(
listitem)
            {
                case 
0
                {
                    if(
PlayerInfo[playerid][pCarLic] >= 1) return SCM(playeridG_CRVENA,"[Greska]"S_BJELA" Vec posjedujete dozvolu za motor!");
                    if(
PlayerInfo[playerid][pCash] < price) return SCMF(playerid,G_CRVENA,"[Greska]:"S_BJELA" Nemate dovoljno novca kod sebe (%d$)",price);
                    new 
str[350];
                     
format(str,sizeof(str),""S_TZELENA"D"S_BJELA"obro dosli u moto skolu!\n"S_TZELENA"P"S_BJELA"olaganje se sastoji samo iz teoriskog dijela!\n"S_TZELENA"D"S_BJELA"a krenete sa polaganjem kliknite "S_TZELENA"\"Kreni\" \n\n\n"S_TZELENA"NAPOMENA: "S_BJELA"Na testu smijete pogrijesiti samo na 1 pitanja!\n\n\n"S_TZELENA"C"S_BJELA"ijena polaganja je %d$",price);
                    
SPD(playerid,42,DIALOG_STYLE_MSGBOX,""S_TZELENA"Informacije",str,"Kreni","Ponisti");
                }
            }
        } 
Thanks to all in advance
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)