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.