22.01.2013, 00:44
Quote:
pawn Код:
pawn Код:
|
Well, there are couple tag mismatch's
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(Work[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, 0xFFFF00FF, "You have finished the mission");
new string[140];
new rand = random(sizeof(TruckLocations));
new rand2 = random(sizeof(TruckLocations));
format(string,sizeof(string),"Mission from %s to %s", ALocations[rand][0], ALocations[rand2][0]);
SendClientMessage(playerid, 0xFFFF00FF, string);
SetPlayerCheckpoint(playerid, TruckLocations[rand2][0],TruckLocations[rand2][1],TruckLocations[rand2][2],7);// 3 tag mismatches right here
}
return 1;
}