Pawno crashing.
#6

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.
Reply


Messages In This Thread
Pawno crashing. - by berz - 18.04.2011, 15:48
Re: Pawno crashing. - by ~Yoshi - 18.04.2011, 16:12
Re: Pawno crashing. - by berz - 18.04.2011, 16:30
Re: Pawno crashing. - by Joe Staff - 18.04.2011, 16:35
Re: Pawno crashing. - by berz - 18.04.2011, 17:03
Re: Pawno crashing. - by Joe Staff - 18.04.2011, 17:42
Re: Pawno crashing. - by Luigi_Mahone - 18.04.2011, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)