Select/Copy random maps from a file
I have this code
PHP Code:
Like: g_iMapVotes[ iVoteMapCount ][ e_MapIndex ] = random_num( 0, iVoteMapCount++ - 1 ), but I don't know how to update the right name in a menu (menu: copy( g_szVoteMaps .. ). |
Re: Select/Copy random maps from a file
PHP Code:
|
Re: Select/Copy random maps from a file
Thanks for reply! But there are some problems:
a. To prevent compile error change PHP Code:
PHP Code:
I added in PHP Code:
PHP Code:
Code:
1. (0) |
Re: Select/Copy random maps from a file
Show g_szVoteMaps declaration.
|
Re: Select/Copy random maps from a file
PHP Code:
|
Re: Select/Copy random maps from a file
Try to log szBuffer after trim() and at ArrayPushString( aMaps, szBuffer ).
Try to put fgets( iFile, szBuffer, charsmax( szBuffer ) ) inside the block. |
Re: Select/Copy random maps from a file
Thank you, Thanks Exolent :mrgreen: !
|
| All times are GMT -4. The time now is 06:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.