Guest User

Untitled

a guest
Jul 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. ////////////////////////////////////////////////////
  2. #define DIJELOVI_FILE "Server/Dijelovi.ini"
  3. enum Dij
  4. {
  5. MagDij
  6. };
  7. new DijInfo[Dij];
  8. ////////////////////////////////////////////////////
  9. new sefstring[200];
  10. format(sefstring, sizeof(sefstring), ""ZUTA"Kolicina dijelova: %d", DijInfo[MagDij]);
  11. magacindijel = CreateDynamic3DTextLabel(sefstring,0x00C0FFFF, 2564.7883,-1293.0896,1044.1250, 10);
  12. /////////////////////////////////////////////////////
  13. ///////////////////////////////////////////////////
  14. forward UcitajDijelove(name[],value[]);
  15. public UcitajDijelove(name[],value[])
  16. {
  17. INI_Int("Dijelovi",DijInfo[MagDij]);
  18. return 1;
  19. }
  20. ///////////////////////////////////////////////////
  21. stock SacuvajDijelove()
  22. {
  23. new nFile[80];
  24. format(nFile,sizeof(nFile),ORG_FILE);
  25. new INI:File = INI_Open(nFile);
  26. INI_WriteInt(File,"Dijelovi",DijInfo[MagDij]);
  27. INI_Close(File);
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment