Pawno help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pawno help (
/showthread.php?tid=646660)
Pawno help -
RoyalGamer - 21.12.2017
my pawno gets crsh sometimes when i compiles my script
help please
Re: Pawno help -
Fratello - 21.12.2017
Please, provide the script and latest changes made to the script.
Re: Pawno help -
Ritzy2K - 21.12.2017
Either use -
https://github.com/Zeex/pawn (Fixes lots of crashes)
Or, your code is faulty, it can cause crashes too.
Re: Pawno help -
RogueDrifter - 21.12.2017
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.
Re: Pawno help -
Ritzy2K - 21.12.2017
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.)
Re: Pawno help -
RogueDrifter - 21.12.2017
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.)