Compilation with SIF results in 'fatal error 103: insufficient memory' on variable assignment - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Compilation with SIF results in 'fatal error 103: insufficient memory' on variable assignment (
/showthread.php?tid=640231)
Compilation with SIF results in 'fatal error 103: insufficient memory' on variable assignment -
Lbaker - 30.08.2017
Hello guys. Today i tried to use @Southclaws-s SIF with my gamemode and i have this interesting error named:
PHP код:
fatal error 103: insufficient memory
So error is on this line
PHP код:
stock SendSplitMessage(playerid, color, msg[])
{
new ml = 115, result[160], len = strlen(msg), repeat;
if(len > ml)
{
repeat = floatround(float(len) / float(ml)); // ERROR
for(new i = 0; i <= repeat; i++)
{
result[0] = 0;
if(len - (i * ml) > ml)
{
strmid(result, msg, ml * i, ml * (i+1));
format(result, sizeof(result), "%s", result);
}
else
{
strmid(result, msg, ml * i, len);
format(result, sizeof(result), "%s", result);
}
SendClientMessage(playerid, color, result);
}
}
else
{
SendClientMessage(playerid, color, msg);
}
return true;
}
So if i comment it, error will go on other line, where i used
PHP код:
repeat = floatround(float(len) / float(ml));
If i compile gamemode without SIF, its ok, it is compiling without any errors/warnings. What can be solution for it?
Re: Compilation with SIF results in 'fatal error 103: insufficient memory' on variable assignment -
Lbaker - 31.08.2017
bump
Re: Compilation with SIF results in 'fatal error 103: insufficient memory' on variable assignment -
Lbaker - 01.09.2017
Quote:
Originally Posted by ******
Get more RAM, or try a different compiler such as Zeex's.
|
More Ram? I have 8 gb. And I tried Zeex's compiler, not working.