PawnCC (Pawn Code Compiler) Crashes. - 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: PawnCC (Pawn Code Compiler) Crashes. (
/showthread.php?tid=163628)
[SOLVED] PawnCC (Pawn Code Compiler) Crashes. -
Ash. - 28.07.2010
Hi all,
Nothing seems to be going my way today, ive rescripted my work script (some of you may remember it from previous 'help' threads) but now i have another problem, when i go to compile, it crashes...
Here is the script:
http://pawn.pastebin.com/xQHxzwSE
When i comment out this line (Line 30):
pawn Code:
new rand = random(sizeof(MissionArray));
it compiles, so i know its something to do with that, but i need "rand" to work for all functions with the same 'random' generation, so its all the same. How can i do this without crashing my compiler?
Thanks
Ash
[SOLVED]
Re: PawnCC (Pawn Code Compiler) Crashes. -
legodude - 28.07.2010
i cant find the line new rand = random(sizeof(MissionArray)); in your pastebin code....
Re: PawnCC (Pawn Code Compiler) Crashes. -
Ash. - 28.07.2010
My bad, i uploaded the wrong one, sorted now - same link
Re: PawnCC (Pawn Code Compiler) Crashes. -
Ash. - 28.07.2010
SOLVED
Thanks anyway
Re: PawnCC (Pawn Code Compiler) Crashes. -
Mike Garber - 28.07.2010
Maybe you have to define a size, like in mine i have;
(example)
new Float:SOMEFLOAT[2][1] = {
{something},
{something}
};
and then;
new RAND = random(sizeof(SOMEFLOAT));