Guest User

Untitled

a guest
May 3rd, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. BPS::DateProp(playerid)
  2. {
  3. new string[128];
  4. new diia, mees, aano, hoora, minuuto, seguundo;
  5. getdate(aano, mees, diia);
  6. gettime(hoora, minuuto, seguundo);
  7. GetPlayerName(playerid, playername, sizeof(playername));
  8. new curdate = getdate();
  9. for(new h = 0; h < sizeof(HouseInfo); h++)
  10. {
  11. if (strcmp(playername, HouseInfo[h][hOwner], true) == 0)
  12. {
  13. HouseInfo[h][hDate] = curdate;
  14. format(string, sizeof string, "%02d/%02d/%02d as %02d:%02d:%02d", diia, mees, aano, hoora, minuuto, seguundo);
  15. strmid(HouseInfo[h][hVerData], string, 0, strlen(string), 255);
  16. SaveCasa(h);
  17. }
  18. }
  19. for(new b = 0; b < sizeof(BizzInfo); b++)
  20. {
  21. if (strcmp(playername, BizzInfo[b][bOwner], true) == 0)
  22. {
  23. BizzInfo[b][bDate] = curdate;
  24. SalvarEmpresa(b);
  25. }
  26. }
  27. for(new sb = 0; sb < sizeof(SBizzInfo); sb++)
  28. {
  29. if (strcmp(playername, SBizzInfo[sb][sbOwner], true) == 0)
  30. {
  31. SBizzInfo[sb][sbDate] = curdate;
  32. SalvarSEmpresa(sb);
  33. }
  34. }
  35. for(new fb = 0; fb < sizeof(FBizzInfo); fb++)
  36. {
  37. if (strcmp(playername, FBizzInfo[fb][fbOwner], true) == 0)
  38. {
  39. FBizzInfo[fb][fbDate] = curdate;
  40. SalvarFEmpresa(fb);
  41. }
  42. }
  43. return true;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment