Server 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: Server Crash (
/showthread.php?tid=640770)
Server Crash -
NitroZeth - 07.09.2017
hello to all, now in my and added to the irc an illegal anti-gun function, this is that if a player places an illegal weapon this will be reported in the irc, but now it happens to me that when someone places an illegal weapon crashes osea there is much lag, and the does not work
code of Ilegal weapons irc .
Код:
public IWC()
{
foreach(Player,i)
{
if(IsPlayerConnected(i))
{
{
if(GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 36 || GetPlayerWeapon(i) == 37 || GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 39 || GetPlayerWeapon(i) == 44 || GetPlayerWeapon(i) == 45)
{
new string[120];
format(string,sizeof(string),"04[IW ALERT!!!] %s(ID %d) has illegal weapons!",GetPlayerName(i),i);
IRC_GroupSay(groupID,IRC_CHANNEL,string);
}
}
}
}
}
when someone has one of those weapons the server stops, stops working everything, resembling lag
Re: Server Crash -
NitroZeth - 07.09.2017
help please
Re: Server Crash -
Yousha - 07.09.2017
No info/detail = no help
Re: Server Crash -
NitroZeth - 07.09.2017
Quote:
Originally Posted by Yousha
No info/detail = no help
|
so , what you need for help me