Help me
#1

i think it gotta look like this but i get this error when it looks correct can someone plz help me

error 001: expected token: ")", but found "{"

code:
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
	if(checkpointid == Exit && IsPlayerInDynamicCP(playerid,Exit)
	{
	    SetPlayerInterior(playerid,3);
	    SetPlayerPos(playerid,-2760.7119,375.4610,4.9358);
		SetPlayerFacingAngle(playerid,359.8049);
	    SetCameraBehindPlayer(playerid);
	    return 1;
	}
	return 1;
}
Reply
#2

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == Exit && IsPlayerInDynamicCP(playerid,Exit))
    {
        SetPlayerInterior(playerid,3);
        SetPlayerPos(playerid,-2760.7119,375.4610,4.9358);
        SetPlayerFacingAngle(playerid,359.8049);
        SetCameraBehindPlayer(playerid);
        return 1;
    }
    return 1;
}
Reply
#3

Thanks so much +rep for you
Reply
#4

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == Exit && IsPlayerInDynamicCP(playerid,Exit)) //i added one more ) here.
    {
        SetPlayerInterior(playerid,3);
        SetPlayerPos(playerid,-2760.7119,375.4610,4.9358);
        SetPlayerFacingAngle(playerid,359.8049);
        SetCameraBehindPlayer(playerid);
        return 1;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)