Hey, ich wollte bei meinem jobsystem machen das man checkpoints abfahren muss, aber es geht nicht, es geht von ersten checkpoint gleich zum letzten, was mache ich falsch?
if(GetPVarInt(playerid,"str") == 1)
{
SetPlayerCheckpoint(playerid, 1691.3373,-1637.9550,13.3828, 3.0);
SetPVarInt(playerid,"str",2);
}
if(GetPVarInt(playerid,"str") == 2)
{
SetPlayerCheckpoint(playerid, 1661.6512,-1524.3806,13.3828, 3.0);
SetPVarInt(playerid,"str",3);
}
if(GetPVarInt(playerid,"str") == 3)
{
SetPlayerCheckpoint(playerid, 1563.8516,-1438.4923,13.3828, 3.0);
SetPVarInt(playerid,"str",4);
}
if(GetPVarInt(playerid,"str") == 4)
{
SetPlayerCheckpoint(playerid, 1371.4841,-1394.2799,13.4201, 3.0);
SetPVarInt(playerid,"str",5);
}
if(GetPVarInt(playerid,"str") == 5)
{
SetPlayerCheckpoint(playerid, 1180.6565,-1396.7629,13.2467, 3.0);
SetPVarInt(playerid,"str",6);
}
if(GetPVarInt(playerid,"str") == 6)
{
SetPlayerCheckpoint(playerid, 1058.6385,-1442.2699,13.3599, 3.0);
SetPVarInt(playerid,"str",7);
}
if(GetPVarInt(playerid,"str") == 7)
{
SetPlayerCheckpoint(playerid, 1035.3191,-1741.6403,13.3812, 3.0);
SetPVarInt(playerid,"str",8);
}
if(GetPVarInt(playerid,"str") == 8)
{
SetPlayerCheckpoint(playerid, 1108.0007,-1854.8330,13.3828, 3.0);
SetPVarInt(playerid,"str",9);
}
if(GetPVarInt(playerid,"str") == 9)
{
SetPlayerCheckpoint(playerid, 1245.9342,-1854.9565,13.3828, 3.0);
SetPVarInt(playerid,"str",10);
}
if(GetPVarInt(playerid,"str") == 10)
{
SetPlayerCheckpoint(playerid, 1429.3011,-1875.5471,13.3828, 3.0);
SetPVarInt(playerid,"str",1);
}
if(GetPVarInt(playerid,"str") == 11)
{
SetPlayerCheckpoint(playerid, 1635.6691,-1888.2684,13.5549, 3.0);
}