SA-MP Forums Archive
Stack Size Error - 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: Stack Size Error (/showthread.php?tid=402031)



Stack Size Error - Jack_SMalls - 24.12.2012

http://puu.sh/1EVBp - Issue from crashdetect plugin.
http://pastebin.com/2pF1um0a - OnDialogResponse


Re: Stack Size Error - [HiC]TheKiller - 25.12.2012

1.
If you look at dini_intset it's dini_IntSet(file, variable, value). You're doing the following:
pawn Код:
dini_IntSet(file, "Vw",PlayerInfo[playerid][pVw] = 0);
Which is fine until the last param where you are assigning a value to the variable as well as setting it. This may cause errors like the ones you're getting. Just set the value of the variable after InSet to 0 and just use
pawn Код:
dini_IntSet(file, "Vw",PlayerInfo[playerid][pVw]);
For all of them and see if you get any errors.

2. Not sure if udb_hash returns a string or a int value. If it returns a string then you will need to fetch using dini_get.