Suleee

PROBLEM

Dec 16th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. function LoadPlayer(playerid, name[], value[])
  2. {
  3. INI_String("Password", PlayerInfo[playerid][pPassword], 24);
  4. INI_String("Account", PlayerInfo[playerid][pAccount], 20);
  5. INI_Int("Pol", PlayerInfo[playerid][pPol]);
  6. INI_Int("Drzava", PlayerInfo[playerid][pDrzava]);
  7. INI_Int("Godine", PlayerInfo[playerid][pGodine]);
  8. INI_String("Email", PlayerInfo[playerid][pEmail], 32);
  9. INI_Int("Registration", PlayerInfo[playerid][pRegistration]);
  10. INI_Int("Skin", PlayerInfo[playerid][pSkin]);
  11. INI_Int("Security", PlayerInfo[playerid][pSecurity]);
  12. INI_Int("Money", PlayerInfo[playerid][pMoney]);
  13. INI_Int("Level", PlayerInfo[playerid][pLevel]);
  14. INI_Int("Hours", PlayerInfo[playerid][pHours]);
  15. INI_Int("Time", PlayerInfo[playerid][pTime]);
  16. INI_Int("Respekt", PlayerInfo[playerid][pRespekt]);
  17. INI_Int("Pay", PlayerInfo[playerid][pPay]);
  18. INI_Int("Day", PlayerInfo[playerid][pDay]);
  19. INI_Int("Robot", PlayerInfo[playerid][pRobot]);
  20. INI_Int("Energy", PlayerInfo[playerid][pEnergy]);
  21. INI_Int("Bull", PlayerInfo[playerid][pBull]);
  22. INI_Int("Banka", PlayerInfo[playerid][pBanka]);
  23. INI_Int("BankaNovac", PlayerInfo[playerid][pBankaNovac]);
  24. INI_String("JMBG", PlayerInfo[playerid][pJMBG], 16);
  25. INI_Int("Bankomat", PlayerInfo[playerid][pBankomat]);
  26. INI_String("Register", PlayerInfo[playerid][pRegister], 48);
  27. INI_Int("Crash", PlayerInfo[playerid][pCrash]);
  28. INI_Float("CrashPosition1", PlayerInfo[playerid][pCrashPosition][0]);
  29. INI_Float("CrashPosition2", PlayerInfo[playerid][pCrashPosition][1]);
  30. INI_Float("CrashPosition3", PlayerInfo[playerid][pCrashPosition][2]);
  31. INI_Float("SpawnPosition1", PlayerInfo[playerid][pSpawnPosition][0]);
  32. INI_Float("SpawnPosition2", PlayerInfo[playerid][pSpawnPosition][1]);
  33. INI_Float("SpawnPosition3", PlayerInfo[playerid][pSpawnPosition][2]);
  34. INI_Int("Admin", PlayerInfo[playerid][pGSA]);
  35. INI_Int("Slot", PlayerInfo[playerid][pSlot]);
  36. INI_Int("AdminLock", PlayerInfo[playerid][pAdminLock]);
  37. INI_Int("AdminCode", PlayerInfo[playerid][pAdminCode]);
  38. INI_Int("Vehicle", PlayerInfo[playerid][pVehicle]);
  39. INI_Int("Ban", PlayerInfo[playerid][pBan]);
  40. INI_Int("Jail", PlayerInfo[playerid][pJail]);
  41. INI_Int("Points", PlayerInfo[playerid][pPoints]);
  42. INI_Int("Wanted", PlayerInfo[playerid][pWanted]);
  43. INI_Int("Breaked", PlayerInfo[playerid][pBreaked]);
  44. INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
  45. INI_Int("Kills", PlayerInfo[playerid][pKills]);
  46. return 1;
  47. }
  48. //=======================================
  49. stock SavePlayer(playerid)
  50. {
  51. if(LoginPlayer[playerid] == 1)
  52. {
  53. new INI:File = INI_Open(UserPath(playerid));
  54. INI_SetTag(File, "DATA");
  55. INI_WriteString(File, "Password", PlayerInfo[playerid][pPassword]);
  56. INI_WriteString(File, "Account", PlayerInfo[playerid][pAccount]);
  57. INI_WriteInt(File, "Pol", PlayerInfo[playerid][pPol]);
  58. INI_WriteInt(File, "Drzava", PlayerInfo[playerid][pDrzava]);
  59. INI_WriteInt(File, "Godine", PlayerInfo[playerid][pGodine]);
  60. INI_WriteString(File, "Email", PlayerInfo[playerid][pEmail]);
  61. INI_WriteInt(File, "Registration", PlayerInfo[playerid][pRegistration]);
  62. INI_WriteInt(File, "Skin", PlayerInfo[playerid][pSkin]);
  63. INI_WriteInt(File, "Security", PlayerInfo[playerid][pSecurity]);
  64. INI_WriteInt(File, "Money", PlayerInfo[playerid][pMoney]);
  65. INI_WriteInt(File, "Level", PlayerInfo[playerid][pLevel]);
  66. INI_WriteInt(File, "Hours", PlayerInfo[playerid][pHours]);
  67. INI_WriteInt(File, "Time", PlayerInfo[playerid][pTime]);
  68. INI_WriteInt(File, "Respekt", PlayerInfo[playerid][pRespekt]);
  69. INI_WriteInt(File, "Pay", PlayerInfo[playerid][pPay]);
  70. INI_WriteInt(File, "Day", PlayerInfo[playerid][pDay]);
  71. INI_WriteInt(File, "Robot", PlayerInfo[playerid][pRobot]);
  72. INI_WriteInt(File, "Energy", PlayerInfo[playerid][pEnergy]);
  73. INI_WriteInt(File, "Bull", PlayerInfo[playerid][pBull]);
  74. INI_WriteInt(File, "Banka", PlayerInfo[playerid][pBanka]);
  75. INI_WriteInt(File, "BankaNovac", PlayerInfo[playerid][pBankaNovac]);
  76. INI_WriteString(File, "JMBG", PlayerInfo[playerid][pJMBG]);
  77. INI_WriteInt(File, "Bankomat", PlayerInfo[playerid][pBankomat]);
  78. INI_WriteString(File, "Register", PlayerInfo[playerid][pRegister]);
  79. INI_WriteInt(File, "Crash", PlayerInfo[playerid][pCrash]);
  80. INI_WriteFloat(File, "CrashPosition1", PlayerInfo[playerid][pCrashPosition][0]);
  81. INI_WriteFloat(File, "CrashPosition2", PlayerInfo[playerid][pCrashPosition][1]);
  82. INI_WriteFloat(File, "CrashPosition3", PlayerInfo[playerid][pCrashPosition][2]);
  83. INI_WriteFloat(File, "SpawnPosition1", PlayerInfo[playerid][pSpawnPosition][0]);
  84. INI_WriteFloat(File, "SpawnPosition2", PlayerInfo[playerid][pSpawnPosition][1]);
  85. INI_WriteFloat(File, "SpawnPosition3", PlayerInfo[playerid][pSpawnPosition][2]);
  86. INI_WriteInt(File, "Admin", PlayerInfo[playerid][pGSA]);
  87. INI_WriteInt(File, "Slot", PlayerInfo[playerid][pSlot]);
  88. INI_WriteInt(File, "AdminLock", PlayerInfo[playerid][pAdminLock]);
  89. INI_WriteInt(File, "AdminCode", PlayerInfo[playerid][pAdminCode]);
  90. INI_WriteInt(File, "Vehicle", PlayerInfo[playerid][pVehicle]);
  91. INI_WriteInt(File, "Ban", PlayerInfo[playerid][pBan]);
  92. INI_WriteInt(File, "Jail", PlayerInfo[playerid][pJail]);
  93. INI_WriteInt(File, "Points", PlayerInfo[playerid][pPoints]);
  94. INI_WriteInt(File, "Wanted", PlayerInfo[playerid][pWanted]);
  95. INI_WriteInt(File, "Breaked", PlayerInfo[playerid][pBreaked]);
  96. INI_WriteInt(File, "Deaths", PlayerInfo[playerid][pDeaths]);
  97. INI_WriteInt(File, "Kills", PlayerInfo[playerid][pKills]);
  98. INI_Close(File);
  99. }
  100. return 1;
  101. }
Advertisement
Add Comment
Please, Sign In to add comment