[pomoc]secondsplayed

Započeo ‹Fox›, Oktobar 11, 2010, 13:06:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

skinuo sam onu FS za payday i malo sam ju uredio i kad dobije placu sekunde igranja se ne vrate na 0 a stavio sam "SecondsPlayed[playerid] = 0;"
eto public-a

forward PayDay(playerid);
public PayDay(playerid)
{
      new playername[24];
      GetPlayerName(playerid, playername, sizeof(playername));
      if(!dini_Exists(udb_encode(playername))) { dini_Create(udb_encode(playername)); }
      SecondsPlayed[playerid] = dini_Int(udb_encode(playername), "Sekunde");
      SecondsPlayed[playerid]++;
      if(SecondsPlayed[playerid] == 15)
      {
          GivePlayerMoney(playerid, 15000);
          SendClientMessage(playerid, 0xFF0005FF, "=====================[ PLACA ]=====================");
          SendClientMessage(playerid, 0xF0F0F0FF, "Primili ste placu, novci su sjeli na vas racun.");
          SecondsPlayed[playerid] = 0;
          PlayerInfo[playerid][pRespect]++;
      }
        return 1;
}