Pawno crashing.
#1

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

There's prob something wrong with the brackets, switch statement or something else. What happens when you try to compile an empty gamemode?
Reply
#3

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?
Reply
#4

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
*/
Reply
#5

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 ;/
Reply
#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
#7

SilentHunter do you have xfire or mIRC?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)