Stack/Heap Collision (insufficient stack size)
#2

but there was no problem before I added pArray[30][30][MAX_PLAYER_NAME]; and some other vars like Query in almost every command that uses database.

Here is my compile message:

Code:
Header size:          12440 bytes
Code size:           555908 bytes
Data size:          4338708 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4653 cells (18612 bytes)
Total requirements: 4923440 bytes
I removed pArray[30][30][MAX_PLAYER_NAME]. But message is still there..

Here is part of code that causes that also started showing that message:

pawn Code:
stock SendTranslate(playerid, color, message[]){
    SendClientMessage(playerid, color, Translate(playerid, message));
    return true;
}

stock Translate(playerid, const message[]){
    new tmpstr[255], tmpmsg[255];
    format(tmpmsg, sizeof(tmpmsg), "%s", message);
    if(!IsPlayerConnected(playerid)) return tmpstr;
    if(!PlayerInfos[playerid][pLanguage]) return tmpmsg;
    else {
        format(tmpstr, sizeof(tmpstr), "%s", dini_Get("Croatian.lng", tmpmsg));
        if(strlen(tmpstr)) return tmpstr;
        else return tmpmsg;
    }
}
Now I think it is this Translate function that causes stack collision
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)