16.01.2013, 22:51
Hello mates, It's me again :P
I got some issues with some checkpoints, since I was using pickups and I decided to switch to Checkpoints, I'm kinda noob with it
When I enter a desired Checkpoint, it doesn't work
I got some issues with some checkpoints, since I was using pickups and I decided to switch to Checkpoints, I'm kinda noob with it
When I enter a desired Checkpoint, it doesn't work
pawn Код:
CheckPoint[0] = CreateDynamicCP(2467.2217,2063.9050,10.8203,2,0,0,-1,100);
CheckPoint[1] = CreateDynamicCP(2087.0249,2059.3794,11.0579,2,0,0,-1,100);
CheckPoint[2] = CreateDynamicCP(2325.1191,2531.7400,10.8203,2,0,0,-1,100);
CheckPoint[3] = CreateDynamicCP(2123.2922,897.7581,11.1797,2,0,0,-1,100);
CheckPoint[4] = CreateDynamicCP(1673.8536,1445.2158,10.7921,2,0,0,-1,100);
CheckPoint[5] = CreateDynamicCP(2829.1511,2402.2349,11.0625,2,0,0,-1,100);
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == CheckPoint[0]) // Checks if the checkpointid equals to Checkpoint[1]
{
ShowPlayerDialog(-1, ATM, DIALOG_STYLE_LIST,"ATM","Deposit\nWithdraw\nCurrent Balance\n{FF0000}Attemptt Robbery{FF0000}","Ok","Close");
}
if(checkpointid == CheckPoint[1]) // Checks if the checkpointid equals to Checkpoint[1]
{
ShowPlayerDialog(-1, ATM, DIALOG_STYLE_LIST,"ATM","Deposit\nWithdraw\nCurrent Balance\n{FF0000}Attemptt Robbery{FF0000}","Ok","Close");
}
if(checkpointid == CheckPoint[2]) // Checks if the checkpointid equals to Checkpoint[1]
{
ShowPlayerDialog(-1, ATM, DIALOG_STYLE_LIST,"ATM","Deposit\nWithdraw\nCurrent Balance\n{FF0000}Attemptt Robbery{FF0000}","Ok","Close");
}
if(checkpointid == CheckPoint[3]) // Checks if the checkpointid equals to Checkpoint[1]
{
ShowPlayerDialog(-1, ATM, DIALOG_STYLE_LIST,"ATM","Deposit\nWithdraw\nCurrent Balance\n{FF0000}Attemptt Robbery{FF0000}","Ok","Close");
}
if(checkpointid == CheckPoint[4]) // Checks if the checkpointid equals to Checkpoint[1]
{
ShowPlayerDialog(-1, ATM, DIALOG_STYLE_LIST,"ATM","Deposit\nWithdraw\nCurrent Balance\n{FF0000}Attemptt Robbery{FF0000}","Ok","Close");
}
if(checkpointid == CheckPoint[5]) // Checks if the checkpointid equals to Checkpoint[1]
{
ShowPlayerDialog(-1, ATM, DIALOG_STYLE_LIST,"ATM","Deposit\nWithdraw\nCurrent Balance\n{FF0000}Attemptt Robbery{FF0000}","Ok","Close");
}
return 1;
}