24.12.2010, 21:32
In my car dealer i created checkpoints where you can sell your vehicle:
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.
What can i do to fix it. Sorry for indentation thats not how it looks.
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);
}
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);
}