18.01.2011, 12:58
Quote:
pawn Код:
You could leave both them without specifying a size and the compiler will calculate the size at compile time. Then you can add more co-ords w/o worrying about size. |
i tested the code and it didn't work.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SUBMISSION)
{
if(IsPlayerInVehicle(playerid, 5))
{
new rand = random(sizeof(VanUnloads));
SetPlayerRaceCheckpoint(playerid, 0,VanUnloads[rand][0], VanUnloads[rand][1],VanUnloads[rand][2],0,0,0,10);
printf("Played %s has started a van mission",GetName(playerid));
}
}
return 1;
}