[Ajuda] Checkpoint
#10

if - Й usado para checar uma condiзгo
else if - Caso a condiзгo acima falhe, essa vai ser checada.
else - Caso Nenhum dos casos acima acontecer, essa entra em aзгo.

PHP Code:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == BusCP[0])
    {
        
BusCP[1] = CreateDynamicCP(1547.3561,-2284.1187,13.4841,3.0,-1,-1,playerid,1000);
        
GameTextForPlayer(playerid"Aguarde passageiros..."30003);
        
TogglePlayerControllable(playerid,0);
        
SetTimerEx("Linhas",3000false,"i",playerid);
        
DestroyDynamicCP(BusCP[0]);
    }
    else if(
checkpointid == BusCP[1])
    {
        
BusCP[2] = CreateDynamicCP(1400.5472,-2284.7380,13.4667,3.0,-1,-1,playerid,1000);
        
DestroyDynamicCP(BusCP[1]);
    }
    else if(
checkpointid == BusCP[2])
    {
        
BusCP[3] = CreateDynamicCP(1368.4954,-2173.5496,13.4840,3.0,-1,-1,playerid,1000);
        
DestroyDynamicCP(BusCP[2]);
    }
    else 
// Esse й um debug, o problema pode nгo ser os operadores lуgicos...
    
{
        
SendClientMessage(playerid, -1"1");
    }
     return 
1;

Reply


Messages In This Thread
Checkpoint - by iWiNeR - 11.05.2018, 23:10
Re: Checkpoint - by Ermanhaut - 12.05.2018, 00:09
Re: Checkpoint - by iWiNeR - 12.05.2018, 00:24
Re: Checkpoint - by Ermanhaut - 12.05.2018, 00:55
Re: Checkpoint - by iWiNeR - 12.05.2018, 01:48
Re: Checkpoint - by FerrariL - 12.05.2018, 01:54
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:10
Re: Checkpoint - by FerrariL - 12.05.2018, 02:22
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:27
Re: Checkpoint - by Minerva - 12.05.2018, 02:34
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:47
Re: Checkpoint - by Ermanhaut - 12.05.2018, 13:58
Re: Checkpoint - by iWiNeR - 12.05.2018, 14:30
Re: Checkpoint - by iWiNeR - 12.05.2018, 17:36
Re: Checkpoint - by Ermanhaut - 12.05.2018, 17:46
Re: Checkpoint - by iWiNeR - 12.05.2018, 19:08
Re: Checkpoint - by iWiNeR - 13.05.2018, 23:08

Forum Jump:


Users browsing this thread: 4 Guest(s)