30.08.2017, 09:42
Hello guys. Today i tried to use @Southclaws-s SIF with my gamemode and i have this interesting error named:
So error is on this line
So if i comment it, error will go on other line, where i used
If i compile gamemode without SIF, its ok, it is compiling without any errors/warnings. What can be solution for it?
PHP код:
fatal error 103: insufficient memory
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;
}
PHP код:
repeat = floatround(float(len) / float(ml));