SA-MP Forums Archive
random - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: random (/showthread.php?tid=116573)



random - armyoftwo - 29.12.2009

Код:
#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