PawnCC (Pawn Code Compiler) Crashes.
#1

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]
Reply
#2

i cant find the line new rand = random(sizeof(MissionArray)); in your pastebin code....
Reply
#3

My bad, i uploaded the wrong one, sorted now - same link
Reply
#4

SOLVED

Thanks anyway
Reply
#5

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));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)