A loop is blocking my code.
#2

pawn Код:
public OnPlayerSpawn(playerid);
{
    if(Account[playerid][gTeam]==Cops)
    {
        print("Debug : Cops Random spawn called.");
        new Random = random(sizeof(RandomSpawnsCops));
        SetPlayerPos(playerid, RandomSpawnsCops[Random][0], RandomSpawnsCops[Random][1], RandomSpawnsCops[Random][2]);
        SetPlayerFacingAngle(playerid, RandomSpawnsCops[Random][3]);
        return 1;
    }
    else if(Account[playerid][gTeam]==Terrorists)
    {
        print("Debug : Teorrists Random spawn called.");
        new Random = random(sizeof(RandomSpawnsTerrorists));
        SetPlayerPos(playerid, RandomSpawnsTerrorists[Random][0], RandomSpawnsTerrorists[Random][1], RandomSpawnsTerrorists[Random][2]);
        SetPlayerFacingAngle(playerid, RandomSpawnsTerrorists[Random][3]);
        return 1;
    }
    return1;
}
If this do not work show us your RandomSpawnsTerrorists and RandomSpawnsCops code
Reply


Messages In This Thread
A loop is blocking my code. - by CoDeZ - 28.08.2012, 19:31
Re: A loop is blocking my code. - by RenSoprano - 28.08.2012, 19:38
Re: A loop is blocking my code. - by CoDeZ - 28.08.2012, 19:41
Re: A loop is blocking my code. - by iTorran - 28.08.2012, 19:48
Re: A loop is blocking my code. - by CoDeZ - 28.08.2012, 19:56
Re: A loop is blocking my code. - by leonardo1434 - 28.08.2012, 20:13
Re: A loop is blocking my code. - by CoDeZ - 28.08.2012, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)