18.04.2011, 17:42
Lets say for example this line causes a crash:
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
Compiler still crashes, so comment out another section
Suddenly the compiler doesn't crash anymore, so now you know within what area the crash is coming from.
pawn Код:
#include <a_samp>
forward LolTimer();
new sex=sweaty;//<-- This Line
public OnGameModeInit();
{
SetTimer("LolTimer",1000,1);
return 1;
}
public LolTimer()
{
SendClientMessageToAll(0xFF0000FF,"LOLOLOLOL");
}
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");
}
*/
pawn Код:
/*
#include <a_samp>
forward LolTimer();
new sex=sweaty;//<-- This Line
*/
public OnGameModeInit();
{
SetTimer("LolTimer",1000,1);
return 1;
}
public LolTimer()
{
SendClientMessageToAll(0xFF0000FF,"LOLOLOLOL");
}

