OnPlayerRequestClass and /colorhelp
#3

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 3 && !IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid,0xFF9D1CAA,"ERROR: This skin is only for players who have the permission.");
        return 0;
    }
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;

    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
And I get this
Код:
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\gamemodes\GangWars.pwn(448) : warning 225: unreachable code
Reply


Messages In This Thread
OnPlayerRequestClass and /colorhelp - by PabloDiCostanzo - 08.03.2013, 19:41
Re: OnPlayerRequestClass and /colorhelp - by SilverKiller - 08.03.2013, 19:55
Re: OnPlayerRequestClass and /colorhelp - by PabloDiCostanzo - 08.03.2013, 21:53
Re: OnPlayerRequestClass and /colorhelp - by SilverKiller - 08.03.2013, 22:03
Re: OnPlayerRequestClass and /colorhelp - by PabloDiCostanzo - 08.03.2013, 22:21

Forum Jump:


Users browsing this thread: 2 Guest(s)