Whats wrong, i dont get it
#1

Hmm, there is something wrong. I dont know how to fix it, i dont get the error.

This is my code
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;
    }
Код:
 error 010: invalid function or declaration
This is the code i get the error on:

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

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

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

You should learn how to indent better, it makes it a lot easier to spot "typos" and such like this!
Reply
#5

Worked, thanks alot

EDIT: I dont know how that error got there, havent even moved the code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)