What the heck is worng here?
#1

Thanks Sasha for CountDown tutorial but this code is supossed to be correct(I modified with GameTextForAll to GameTextForPlayer)

pawn Код:
public CountDown()
{
  new string[20];
  format(string, sizeof(string), "%d seconds remained", countn);
  GameTextForPlayer(playerid,string,10000,4);
  countn--;
  if(countn <= -1)
  {
    KillTimer(counttimer);
  }
  return 1;
}
Undefined playerid(:O?:OO? /facepalm)
Reply
#2

pawn Код:
public CountDown(playerid)
{
  new string[20];
  format(string, sizeof(string), "%d seconds remained", countn);
  GameTextForPlayer(playerid,string,10000,4);
  countn--;
  if(countn <= -1)
  {
    KillTimer(counttimer);
  }
  return 1;
}
Reply
#3

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)