PAWN CRASH - 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: PAWN CRASH (
/showthread.php?tid=415802)
PAWN CRASH -
MiGu3X - 14.02.2013
When i add SendClientMessageToAll(-1, string); , like this:
pawn Код:
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Timeout){CCCCCC}:.", name);
case 1: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Leaving){CCCCCC}:.", name);
case 2: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Kicked/Banned){CCCCCC}:.", name);
SendClientMessageToAll(-1, string);
}
Pawn can't compile and crashes o.o help me pls
Re: PAWN CRASH -
bensmart469 - 14.02.2013
PHP код:
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Timeout){CCCCCC}:.", name);
case 1: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Leaving){CCCCCC}:.", name);
case 2: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Kicked/Banned){CCCCCC}:.", name);
}
SendClientMessageToAll(-1, string);
Re: PAWN CRASH -
gtakillerIV - 14.02.2013
Add the SendClientMessageToAll outside of the "switch(reason)".
pawn Код:
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Timeout){CCCCCC}:.", name);
case 1: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Leaving){CCCCCC}:.", name);
case 2: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Kicked/Banned){CCCCCC}:.", name);
}
SendClientMessageToAll(-1, string);
Respuesta: PAWN CRASH -
MiGu3X - 14.02.2013
aww, thnx guys
Re: PAWN CRASH -
gtakillerIV - 14.02.2013
It's abit akward that your PAWNO didin't give you an error. Better reinstall Pawno.