Checkpoint streamer problem
#2

Код:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid)
{
  if(streamid == cp1)
  {
    GameTextForPlayer(playerid,"Welcome to the Hospital! Type /heal to restore your HP! It costs $100",3000,5);
  }
  else if(streamid == cp2)
  {
    stuff here....
  }
  return 1;
}
or you could use switch:

Код:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid)
{
  switch(streamid)
  {
    case cp1: GameTextForPlayer(playerid,"Welcome to the Hospital! Type /heal to restore your HP! It costs $100",3000,5);
    case cp2: stuff here....
  }
  return 1;
}
Reply


Messages In This Thread
Checkpoint streamer problem - by killdahobo99 - 09.07.2009, 04:41
Re: Checkpoint streamer problem - by StrickenKid - 09.07.2009, 04:57
Re: Checkpoint streamer problem - by Chaprnks - 09.07.2009, 04:57

Forum Jump:


Users browsing this thread: 5 Guest(s)