cone97

Untitled

Jul 1st, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. forward DodajNeaktivnostFirmi(f);
  2. public DodajNeaktivnostFirmi(f)
  3. {
  4. for(new fID = 0; fID < sizeof(FirmaInfo); fID++)
  5. {
  6. if(FirmaInfo[fID][fImaVlasnika] == 1)
  7. {
  8. FirmaInfo[fID][fNeaktivnost] ++;
  9. Firme_Neaktivnost(fID);
  10. SacuvajFirmu(fID);
  11. }
  12. if(FirmaInfo[fID][fNeaktivnost] > 1)
  13. {
  14. FirmaInfo[fID][fImaVlasnika] = 0;
  15. FirmaInfo[fID][fKasa] = 0;
  16. FirmaInfo[fID][fZatvoreno] = 1;
  17. FirmaInfo[fID][fNeaktivnost] = 0;
  18. strmid(FirmaInfo[fID][fVlasnik], "Niko", 0, strlen("Niko"), 255);
  19. FirmaLabelIPickup(fID);
  20. SacuvajFirmu(fID);
  21. new stringer[256];
  22. format(stringer, -1, ""CRVENA"[ Zavod za urbanizaciju ] Trenutno je na raspolaganju nova firma na adresi %s %d, po ceni od %d$!", fID, UlicaFirme(fID), FirmaInfo[fID][fCena]);
  23. SCMTA(-1, stringer);
  24. }
  25. }
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment