Advertisement
mrdrifter

Untitled

Jan 31st, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnFilterScriptInit ( )
  4. {
  5. new ftimeban[32], ftime, czas;
  6. czas = 100000;
  7.  
  8. if((ftime = floatround(((czas) / 86400)), ftime) > 0)
  9. format(ftimeban, sizeof(ftimeban), "na %d dni", ftime);
  10. else if((ftime = floatround(((czas) / 3600)), ftime) > 0)
  11. format(ftimeban, sizeof(ftimeban), "na %d godzin", ftime);
  12. else if((ftime = floatround(((czas) / 60) % 60), ftime) > 0)
  13. format(ftimeban, sizeof(ftimeban), "na %d minut", ftime);
  14. else
  15. format(ftimeban, sizeof(ftimeban), "mniej niż minutę...");
  16.  
  17. printf(ftimeban);
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement