05.09.2013, 17:28
Hi there, first off, great tutorial
.
One problem, everything works fine until I arrive at the last checkpoint. When I get there, nothing happens at all - the checkpoint remains there and I don't receive any message or money. Any ideas?
Thanks in advance.

One problem, everything works fine until I arrive at the last checkpoint. When I get there, nothing happens at all - the checkpoint remains there and I don't receive any message or money. Any ideas?
Thanks in advance.
Код:
public OnPlayerEnterCheckpoint(playerid) { if(tcp[playerid] == 1) // This checks if our variable equals to 1, if so: it continues { DisablePlayerCheckpoint(playerid); // This makes sure that there will be a new checkpoint tcp[playerid] = 2; // Changes the variable, so we can use it later again with OnPlayerEnterCheckpoint SetPlayerCheckpoint(playerid, -335.0937,1062.7295,19.7392, 4.0); // Fort carson dropoff SendClientMessage(playerid, -1, "You have just picked up the goods, please drop them off at Fort Carson Medical Center."); return 1; } if(tcp[playerid] == 2) // This checks if our variable equals to 1, if so: it continues { DisablePlayerCheckpoint(playerid); // This makes sure that there will be a new checkpoint tcp[playerid] = 3; // Changes the variable, so we can use it later again with OnPlayerEnterCheckpoint SetPlayerCheckpoint(playerid, -82.6880,-1124.5398,1.0847, 4.0);//Back to HQ for pay SendClientMessage(playerid, -1, "You have just dropped the good off, please head back to HQ to collect your pay for this job."); return 1; } if(tcp[playerid] == 4) // This checks if our variable equals to 1, if so: it continues { DisablePlayerCheckpoint(playerid); // This makes sure that there will be a new checkpoint tcp[playerid] = 5; // Changes the variable, so we can use it later again with OnPlayerEnterCheckpoint SendClientMessage(playerid, -1, "You have been payed $500 for this job."); GivePlayerMoney(playerid, 500); return 1; } return 1; }