Hexadroid

fs20rnd

Oct 18th, 2020
459
171 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma hdrstop
  2. #pragma argsused
  3.  
  4. #ifdef _WIN32
  5. #include <tchar.h>
  6. #else
  7.   typedef char _TCHAR;
  8.   #define _tmain main
  9. #endif
  10.  
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13.  
  14. float x,y;
  15.  
  16. int i=1;
  17.  
  18. int _tmain(int argc, _TCHAR* argv[])
  19. {
  20.     srand (time(NULL));
  21.  
  22.     printf("Flight Simulator 2020\n");
  23.  
  24.     printf("\n fs2020 random location visit.Required settings: developer mode on !!");
  25.     printf("\nDisable slew mode when you arrive.Give it a minute to load in the scenery.");
  26.     printf("\nrepeat ? press 1+enter, or exit : 0 plus enter \n");
  27.     printf("\nselect window, teleport window, enter the following coordinates :");
  28.  
  29.     while (i)
  30.         {
  31.  
  32.  
  33.     y = (9000 - (rand() % 18000))/100.00;
  34.     x = (18000 - (rand() % 36000))/100.00;
  35.  
  36.     printf("\n\n latitude: %.2f , longitude %.2f\n\n",y,x);
  37.  
  38.  
  39.  
  40.             scanf("%d", &i);
  41.          }
  42.  
  43.  
  44.     return 0;
  45. }
RAW Paste Data