Y_INI problem...
#4

Well first of all regarding the pragma unused params, it actually doesnt affect anything from what I know. It just helps you get rid of warnings for example.

new myVar;
#pragma unused myVar

that would get rid of the
PHP код:
symbol is never used"myVar" 
Regarding the other problem you head with stack/heap problem, its quite simple, reduce the size of your strings.

For example what many people do is this
PHP код:
CMD:adminchat(playerid,params[]) {
    new 
text[128];
    if(
sscanf(params,"s[128]",text)) return SCM(playerid,COLOR_RED,"Usage: /adminchat [text]");
    
    
    new 
string[256];
    
format(string,sizeof(string),"Admin Chat %s",text);
    
SendAdminMessage(string);
    return 
1;

The problem would be new string[256];. You ask why? Its simple, chat can support only 128 characters therefore making a string with 256 characters is useless and it just adds up to your memory. Eventually when these "un used" characters stack up they will get you the stack/heap warning.

But yeah all in all, you have to optimize your gamemode. Reduce the string sizes that you dont need etc.
Reply


Messages In This Thread
Y_INI problem... - by DusanInfinity - 02.07.2016, 22:05
Re: Y_INI problem... - by TwinkiDaBoss - 03.07.2016, 00:27
Re: Y_INI problem... - by DusanInfinity - 03.07.2016, 07:05
Re: Y_INI problem... - by TwinkiDaBoss - 03.07.2016, 13:03
Re: Y_INI problem... - by DusanInfinity - 03.07.2016, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)