Pawno crashing. - 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: Pawno crashing. (
/showthread.php?tid=249388)
Pawno crashing. -
berz - 18.04.2011
Hey all. I know that on this forum is alot of topics about this. But none know how to fix it so pls help me and help all.
So when i go compile gm ( i download it from net and just want to compile it, didn't changed nothing ) my pawno just crashes so help me please.
Re: Pawno crashing. -
~Yoshi - 18.04.2011
There's prob something wrong with the brackets, switch statement or something else. What happens when you try to compile an empty gamemode?
Re: Pawno crashing. -
berz - 18.04.2011
Well never before i had problems with this gm, and now i got it ;/ and i didnt change nothing. Well nothing happens when i
Quote:
Originally Posted by ~Yoshi
What happens when you try to compile an empty gamemode?
|
Re: Pawno crashing. -
Joe Staff - 18.04.2011
The best way to find out what's causing the crash, is to comment out large sections of the script and then compile (don't worry about errors, just find out where it's crashing Pawno), Use area comment tags
pawn Код:
/*
This area
is being
commented
*/
Re: Pawno crashing. -
berz - 18.04.2011
Quote:
Originally Posted by SilentHuntR
The best way to find out what's causing the crash, is to comment out large sections of the script and then compile (don't worry about errors, just find out where it's crashing Pawno), Use area comment tags
pawn Код:
/* This area is being commented */
|
Hmm, I don't get it ;/
Re: Pawno crashing. -
Joe Staff - 18.04.2011
Lets say for example this line causes a crash:
pawn Код:
#include <a_samp>
forward LolTimer();
new sex=sweaty;//<-- This Line
public OnGameModeInit();
{
SetTimer("LolTimer",1000,1);
return 1;
}
public LolTimer()
{
SendClientMessageToAll(0xFF0000FF,"LOLOLOLOL");
}
If this were to for some reason cause a crash on compile, you would have to find a way to remove the code
so you comment out sections to find out what section is causing the crash
pawn Код:
#include <a_samp>
forward LolTimer();
new sex=sweaty;//<-- This Line
/*
public OnGameModeInit();
{
SetTimer("LolTimer",1000,1);
return 1;
}
public LolTimer()
{
SendClientMessageToAll(0xFF0000FF,"LOLOLOLOL");
}
*/
Compiler still crashes, so comment out another section
pawn Код:
/*
#include <a_samp>
forward LolTimer();
new sex=sweaty;//<-- This Line
*/
public OnGameModeInit();
{
SetTimer("LolTimer",1000,1);
return 1;
}
public LolTimer()
{
SendClientMessageToAll(0xFF0000FF,"LOLOLOLOL");
}
Suddenly the compiler doesn't crash anymore, so now you know within what area the crash is coming from.
Re: Pawno crashing. -
Luigi_Mahone - 18.04.2011
SilentHunter do you have xfire or mIRC?