Checkpoint Help!?
#1

Код:
#define CP_SF 0
#define CP_LS 1
#define CP_LV 2

new gPlayerCheckpointStatus[MAX_PLAYERS];
//these things...

Код:
public OnPlayerConnect(playerid)
{
	gPlayerCheckpointStatus[playerid] = CP_SF;
	SetPlayerCheckpoint(playerid, xxx.x'x'x', yyy.y'y'y', zzz.z'z'z', 5.0);

  gPlayerCheckpointStatus[playerid] = CP_LS;
	SetPlayerCheckpoint(playerid, xxx.x'x'x', yyy.y'y'y', zzz.z'z'z', 5.0);

  gPlayerCheckpointStatus[playerid] = CP_LV;
	SetPlayerCheckpoint(playerid, xxx.x'x'x', yyy.y'y'y', zzz.z'z'z', 5.0);
...
Only CP_LV is appearing..How can I show other? (> CP_SF, CP_LS)?

Код:
public OnPlayerEnterCheckpoint(playerid) {
	switch (gPlayerCheckpointStatus[playerid]) {
		case CP_SF:
		  {
	      //any action
			}
		case CP_LS:
		  {
	       //any action
		  }
		case CP_LV:
		  {
	       //any action
		  }
	}
	return 1;
}
Reply


Messages In This Thread
Checkpoint Help!? - by kAf_KeF - 21.05.2009, 21:43
Re: Checkpoint Help!? - by Badger(new) - 21.05.2009, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)