SA-MP Forums Archive
irc /announce crashes my server - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: irc /announce crashes my server (/showthread.php?tid=98748)



irc /announce crashes my server - [HKS]dlegend - 22.09.2009

Код:
irccmd_ann(conn, channel[], user[], message[])
{
	new tmp[256];
	tmp = zcmd(1, message);

	if(ircIsOp(conn, channel, user) == 0) return ircSay(conn, channel, "You are not a channel admin");
	if(strlen(tmp) == 0) return ircSay(conn, channel, "You did not put in a msg");

	new string[256];
	format(string, sizeof(string), "%s", message[6]);
	GameTextForAll(string, 5000, 3);
	return 1;
}
it seems to crash my server but i dont no y


Re: irc /announce crashes my server - GTA_Rules - 22.09.2009

pawn Код:
irccmd_ann(conn, channel[], user[], params[])
{
    if(!strlen(params)) return ircSay(conn, channel, "You did not put in a msg");
    if(!ircIsOp(conn,channel,user)) return false;

new string[128];
    format(string, sizeof(string), "%s", params);
    GameTextForAll(string, 5000, 3);
  return 1;
}



Re: irc /announce crashes my server - [HKS]dlegend - 22.09.2009

thanks man