|
Member
|
07-07-2010
, 02:54
Re: #define MAX_SIZE 1012
|
#4
|
this is my code:
#define MAX_SIZE 1012
new g_Text[MAX_SIZE]
new gamemp[34]
public Read_MpGame()
{
new i_File, s_File[128], Len, i
get_configsdir(s_File, charsmax(s_File))
format(s_File, charsmax(s_File), "%s/gamemp.txt", s_File)
i_File = fopen(s_File, "r")
fgets(i_File, g_Text, MAX_SIZE)
fclose(i_File)
md5_file(s_File, gamemp)
Len = strlen(gamemp)
for (i = 4; i < Len-1; i++) gamemp[i] = 0
}
this is work if the MAX_SIZE is not biger from 1012 and i need to work wiht 5000
if i change the line
#define MAX_SIZE 1012
to
#define MAX_SIZE 5000
is not work
|
|
|
|