[Ajuda] Random nгo estб funcionando ??? '-'
#1

Boa noite pessoas do forum, estou com um problema em meu code e nгo consigo identificar, eis aqui o code..

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	if(CarregarSprunk[0][playerid] == 1) {
		CarregarSprunk[0][playerid] = 0;
		if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 498) {
			TogglePlayerControllable(playerid, false);
			RandomSprunks = random(3);
			switch(RandomSprunks)
			{
				case 0: CarregarSprunk[1][playerid] = SetPlayerCheckpoint(playerid, 1659.506958, 1721.457031, 10.828111, 1.0);
				case 1: CarregarSprunk[2][playerid] = SetPlayerCheckpoint(playerid, -1455.217651, 2593.229248, 55.835937, 1.0);
				case 2: CarregarSprunk[3][playerid] = SetPlayerCheckpoint(playerid, -14.815089, 1176.700927, 19.563381, 1.0);
			}
		}
	}
	DisablePlayerCheckpoint(playerid);
    return  true;
}
o problema й o seguinte, quando o player entra no checkpoint CarregarSprunk[0][playerid] ele congela o player normal, mas nгo seta o outro checkpoint ...
Reply


Messages In This Thread
Random nгo estб funcionando ??? '-' - by FullStarS - 03.08.2018, 00:31
Re: Random nгo estб funcionando ??? '-' - by FerrariL - 03.08.2018, 00:40
Re: Random nгo estб funcionando ??? '-' - by FullStarS - 03.08.2018, 01:43
Re: Random nгo estб funcionando ??? '-' - by ForT - 03.08.2018, 02:18
Re: Random nгo estб funcionando ??? '-' - by FullStarS - 03.08.2018, 02:29

Forum Jump:


Users browsing this thread: 1 Guest(s)