Raised This Month: $ Target: $400
 0% 

1, 2, 1, 2 Count


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Diblo
Junior Member
Join Date: Mar 2009
Old 06-12-2009 , 11:00   1, 2, 1, 2 Count
Reply With Quote #1

Hey, I've tried to build this code into the mapchooser.
But it will not really help to select the file 1, 2, 1 etc.

Code:
   //get the map number
   new g_mndb_file[128]
   get_datadir(g_mndb_file, 127)
   format(g_mndb_file, 127, "%s/maps_chooser.dat", g_mndb_file)

   new mn[5]=1;
   new mndb_file = fopen(g_mndb_file, "wt+")

   if ( ! mndb_file )
   {
      fprintf(mndb_file, "%s", mn)
      fclose(mndb_file)
   }
   else
   {
      fgets(mndb_file, mn, 4)

      if (mn[3] == 1)
      {
         mn[3]=2;
         fprintf(mndb_file, "%s", mn)
         fclose(mndb_file)
      }
      else
      {
         mn[3]=1;
         fprintf(mndb_file, "%s", mn)
         fclose(mndb_file)
      }
   }

    new maps_ini_file[64]
    get_configsdir(maps_ini_file, 63);
    format(maps_ini_file, 63, "%s/maps_chooser%s.ini", maps_ini_file, mn)
Diblo is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode