SA-MP Forums Archive
Why does this code crash my server? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why does this code crash my server? (/showthread.php?tid=228978)



Why does this code crash my server? - DaneAMattie - 20.02.2011

i found out that when i make a comment of the AddMenuItem part that it wont crash so there is the problem but why and how to fix?



Код:
new tmpCName[10];
new pClass1[128];

tmpCName[9] = tmpCName[9] & pClass1[1];
AddMenuItem(ClassMenu, 0, tmpCName[9]);