A little problem with checkpoints
#1

In my car dealer i created checkpoints where you can sell your vehicle:

pawn Код:
for(new i = 0; i < sizeof(DealerCP); i++)
    {
        DealerPos = CreateDynamicCP(DealerCP[i][0],DealerCP[i][1],DealerCP[i][2],1.0,-1,-1,-1,100.0);
    }
But it is kinda of its own mind, i have 3 checkpoints but the dialog only shows in one of those 3 not all of them.

pawn Код:
if(checkpointid == DealerPos)
    {
        for(new x = 0; x < sizeof(DealerCP); x++)
        if(IsPlayerInRangeOfPoint(playerid, 10.0, DealerCP[x][0], DealerCP[x][1], DealerCP[x][2]))
        ShowPlayerSellVehDialog(playerid);
    }
What can i do to fix it. Sorry for indentation thats not how it looks.
Reply


Messages In This Thread
A little problem with checkpoints - by Tee - 24.12.2010, 21:32
Re: A little problem with checkpoints - by The_Gangstas - 24.12.2010, 21:36
Re: A little problem with checkpoints - by Tee - 24.12.2010, 22:20
Re: A little problem with checkpoints - by The_Gangstas - 24.12.2010, 22:37
Re: A little problem with checkpoints - by Tee - 24.12.2010, 22:59

Forum Jump:


Users browsing this thread: 1 Guest(s)