Crashing the pawn compiler 0o - 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: Crashing the pawn compiler 0o (
/showthread.php?tid=139539)
Crashing the pawn compiler 0o -
biltong - 05.04.2010
http://pawn.pastebin.com/4d7txmMB
I have no idea what is crashing it. When I compile the window opens but then windows tells me there was a problem with it.
Re: Crashing the pawn compiler 0o -
Jakku - 05.04.2010
Too many errors in the script
Re: Crashing the pawn compiler 0o -
biltong - 05.04.2010
Would help if I knew where they are :/
Re: Crashing the pawn compiler 0o -
[MWR]Blood - 05.04.2010
Quote:
Originally Posted by biltong
Would help if I knew where they are :/
|
The compiler is crashing when you putted more braces than required.
Re: Crashing the pawn compiler 0o -
biltong - 05.04.2010
I double checked, nothing wrong with them.
Re: Crashing the pawn compiler 0o -
Babul - 05.04.2010
line 267:
i assume its supposed to be like...?
Код:
for (i=0; i < m, i++)
edit: that always happens when iam searching for bugs: i dont see the second right beside the first one:
line 263 and 267
Код:
for (; i < m, i++) if (IsPlayerAdmin) AdminsOnline++; //getting the number of admins online
new rand = random(AdminsOnline); //getting a random number
for (; i < m, i++)
each for() should initialize with the i=0 or new i=0:
Код:
for (i=0; i < m, i++) if (IsPlayerAdmin) AdminsOnline++; //getting the number of admins online
for (i=0; i < m, i++)
if the i aint set-up already, add in front of the 2 loops:
Re: Crashing the pawn compiler 0o -
biltong - 05.04.2010
I don't know, dice7 gave me that code. It still crashed without it