Nothing happened when I enter in a Dynamic Checkpoint
#2

Need more code than this... Show where you set gTeam, and where you create the checkpoint.

You also need to give more information as to what is happening, and what you have tried.


Also use tags, and fix your indentation.

PHP код:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == CPStunt[0] && gTeam[playerid] == TEAM_STUNTER)
    {
        
CPStunt[1] = CreateDynamicCP(1958.5196423.2000007629392, -1, -1, -1100.0);
        
TogglePlayerDynamicCP(playeridCPStunt[0], 1);
    }
    if(
checkpointid == CPStunt[1] && gTeam[playerid] == TEAM_STUNTER)
    {
        
GivePlayerMoney(playerid5000);
        
TogglePlayerDynamicCP(playeridCPStunt[0], 1);
        
DestroyDynamicCP(CPStunt[1]);
    }
    return 
1;

Now that looks a lot better.
Reply


Messages In This Thread
Nothing happened when I enter in a Dynamic Checkpoint - by GoDylan - 11.06.2018, 14:36
Re: Nothing happened when I enter in a Dynamic Checkpoint - by Sew_Sumi - 11.06.2018, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)