random
#1

Код:
#define rank1price randomEx(500,900)

public PayDay()
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  {
    if(IsPlayerConnected(i))
    {
     if (RankInfo[i][rank1] == 1)
     {
			new string42[128];
			new	themoney;
			themoney = rank1price;
      GivePlayerMoney(i, rank1price);
      	GameTextForPlayer(i,"Pay Day $",1000,1);
    	  format(string42, sizeof(string42), "You got: %d", themoney);
      SendClientMessage(i, COLOR_WHITE, string42);
     }
Its showing wrong numbers like i receive 700 it shows 811 at sendclientmessage
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)