Pawno help
#1

my pawno gets crsh sometimes when i compiles my script

help please
Reply
#2

Please, provide the script and latest changes made to the script.
Reply
#3

Either use - https://github.com/Zeex/pawn (Fixes lots of crashes)

Or, your code is faulty, it can cause crashes too.
Reply
#4

Reasons experienced by me that cause pawno to crash:
1: An un-terminated strin, EX:
PHP код:
SendClientMessageToAll(-1,"Hi); 
See after "Hi << there isn't another " to terminate the string.
and it should look like this :
PHP код:
 SendClientMessageToAll(-1,"Hi"); 
2: An unmatching closing brace, for EX:
PHP код:
public OnPlayerConnect(playerid)
{
    
SendClientMessageToAll(-1,"Someone connected");
    }
    return 
1;

see on the code above we have one { and two } so remove one the code should've looked like
PHP код:
public OnPlayerConnect(playerid)
{
    
SendClientMessageToAll(-1,"Someone connected");
    return 
1;

And the vise versa you might have two {{ and only one } so review your code and see where you fucked up.

these were the reasons that I KNOW OF idk if there's more or not.
Reply
#5

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Reasons experienced by me that cause pawno to crash:
1: An un-terminated strin, EX:
PHP код:
SendClientMessageToAll(-1,"Hi); 
See after "Hi << there isn't another " to terminate the string.
and it should look like this :
PHP код:
 SendClientMessageToAll(-1,"Hi"); 
2: An unmatching closing brace, for EX:
PHP код:
public OnPlayerConnect(playerid)
{
    
SendClientMessageToAll(-1,"Someone connected");
    }
    return 
1;

see on the code above we have one { and two } so remove one the code should've looked like
PHP код:
public OnPlayerConnect(playerid)
{
    
SendClientMessageToAll(-1,"Someone connected");
    return 
1;

And the vise versa you might have two {{ and only one } so review your code and see where you fucked up.

these were the reasons that I KNOW OF idk if there's more or not.
Both of the issues you mentioned must produce a compiler error. (I'm fairly certain BUT I can be wrong of course.)
Reply
#6

Quote:
Originally Posted by Ritzy
Посмотреть сообщение
Both of the issues you mentioned must produce a compiler error. (I'm fairly certain BUT I can be wrong of course.)
That can't be possible as I've already countered the compiler crash thousands of times because of those problems (mostly when the code is too long.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)