Advertisement
Guest User

Untitled

a guest
Mar 19th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Function LoadStuff()
  2. {
  3. new arrCoords[7][64];
  4. new strFromFile2[256];
  5. new File: file = fopen("stuff.ini", io_read);
  6. if (file)
  7. {
  8. fread(file, strFromFile2);
  9. split2(strFromFile2, arrCoords, ',');
  10. Jackpot = strval(arrCoords[0]);
  11. Tax = strval(arrCoords[1]);
  12. TaxValue = strval(arrCoords[2]);
  13. Security = strval(arrCoords[3]);
  14. PayDayTeiler = strval(arrCoords[4]);
  15. LSAWaren = strval(arrCoords[5]);
  16. FarmerDrogen = strval(arrCoords[6]);
  17. fclose(file);
  18. if(Security == 0)
  19. {
  20. }
  21. else
  22. {
  23. GameModeExit();
  24. }
  25. }
  26. else
  27. {
  28. GameModeExit(); // hier der Crash
  29. }
  30. return 1;
  31. }
  32.  
  33. Function LoadFrakDrugs()
  34. {
  35. new arrCoords[14][64];
  36. new strFromFile2[256];
  37. new File: file = fopen("FrakDrugs.ini", io_read);
  38. if (file)
  39. {
  40. fread(file, strFromFile2);
  41. split2(strFromFile2, arrCoords, ',');
  42. LCNDrugs = strval(arrCoords[0]);
  43. YakDrugs = strval(arrCoords[1]);
  44. TriadDrugs = strval(arrCoords[2]);
  45. GroveDrugs = strval(arrCoords[3]);
  46. BallasDrugs = strval(arrCoords[4]);
  47. BikerDrugs = strval(arrCoords[5]);
  48. VagosDrugs = strval(arrCoords[6]);
  49. AztecaDrugs = strval(arrCoords[7]);
  50. RSDrugs = strval(arrCoords[8]);
  51. TerrorDrugs = strval(arrCoords[9]);
  52. BrigadaDrugs = strval(arrCoords[10]);
  53. HitmanDrugs = strval(arrCoords[11]);
  54. SFRifaDrugs = strval(arrCoords[12]);
  55. WHDrugs = strval(arrCoords[13]);
  56. fclose(file);
  57. }
  58. else
  59. {
  60. printf("FRAKDRUGS.INI FEHLT");
  61. }
  62. return 1;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement