SA-MP Forums Archive
invalid function or declaration - 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: invalid function or declaration (/showthread.php?tid=449137)



Help plssss - Vizi - 07.07.2013

How can i fix this??(sry)

pawn Код:
(6738) : error 010: invalid function or declaration
pawn Код:
return 1; // is the error(line)
pawn Код:
else
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469);
            SetPlayerFacingAngle(playerid, 0);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
    }
    return 1;
}



Re: invalid function or declaration - SwisherSweet - 07.07.2013

Take the first return 1; out, i would donit for you but im on my phone


Re: invalid function or declaration - Vizi - 07.07.2013

Like this ?

pawn Код:
else
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469);
            SetPlayerFacingAngle(playerid, 0);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
        }
    }
return 1;