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

Im using zeex compiler and get this weird error but with original pawn compiler get nothing
PHP код:
case DIALOG_GCOLOR:
        {
            if(
response)
            {
                for (new 
0MAX_GANGSi++) if(GangInfo[i][GangColor] == listitem) return SendError(playerid"Sorry, but the selected color are using some gang. Please select another !");
                
                
GangInfo[PlayerInfo[playerid][GangID]][GangColor] = listitemAnnounce(playerid"~w~~h~Gang color have been ~n~~g~~h~updated~w~~h~."30004);
                
                
eString[0] = EOS;
                
                
format(eStringsizeof eString"GANG: {FFFFFF}Leader '{FFFF00}%s{FFFFFF}' has set a new color to your gang."PlayerName(playerid));
                
SendGangMessage(PlayerInfo[playerid][GangID], eString);
                
                foreach(new 
Player) if(PlayerInfo[playerid][GangID] == PlayerInfo[i][GangID]) SetPlayerColor(iColors[listitem]);
            }
            return 
1;
        } 
An example of piece of code that gave me that error(its almost all over OnDialogResponse)
Its just a gamemode from internet that i try to improve and use it
Reply


Messages In This Thread
error 078: function uses both "return" and "return <value>" - by Banditul18 - 05.11.2017, 13:18
Re: error 078: function uses both "return" and "return <value>" - by Konstantinos - 05.11.2017, 13:30
Re: error 078: function uses both "return" and "return <value>" - by Banditul18 - 05.11.2017, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)