15.08.2013, 06:53
Sorry for this bump. But I have a question.
pawn Code:
//read the comments
enum CPData
{
Float:x,
Float:y,
Float:z,
Strings[]
}
new CP[][CPData] =
{
{123.0, 456.0, 789.0, "You have entered CP 1"},
{987.0, 654.0, 321.0, "You have entered CP 2"},
{0.0, 0.0, 1.0, "You have entered CP 3"}
};
//gamemodeinit
for(new i; i < sizeof(CP); i++)
{
CreateDynamicCP(CP[i][x], CP[i][y], CP[i][z]);
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
for(new i; i < sizeof(CP); i++)
{
//what should i do here to display CP 2(or any) message?
}
};