Some strange issue with 0.3x R1-2 - 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: Some strange issue with 0.3x R1-2 (
/showthread.php?tid=426365)
Some strange issue with 0.3x R1-2 -
CoaPsyFactor - 28.03.2013
Hello there, I have some strange issue, server doesn't want to accept any connection after some time, this is part of server_log.txt
Код:
[21:42:10] Command successfull Jack_Wolf(1) - [/smokecig]
[21:43:16] Incoming connection: 188.65.8.137:56353
[21:43:46] Kicking 188.65.8.137 because they didn't logon to the game.
[21:45:21] Incoming connection: 93.143.155.139:65051
[21:45:51] Kicking 93.143.155.139 because they didn't logon to the game.
[21:46:29] Incoming connection: 93.143.155.139:65052
[21:46:59] Kicking 93.143.155.139 because they didn't logon to the game.
[21:48:53] Incoming connection: 71.175.12.168:50571
[21:49:23] Kicking 71.175.12.168 because they didn't logon to the game.
[21:50:01] Incoming connection: 71.175.12.168:50572
[21:50:03] Incoming connection: 189.18.18.94:51069
[21:50:31] Kicking 71.175.12.168 because they didn't logon to the game.
[21:50:33] Kicking 189.18.18.94 because they didn't logon to the game.
At first I thought it was some command bug, but as you can see it started after /smokecig and that cmd just apply special action to player
Re: Some strange issue with 0.3x R1-2 -
Pawnie - 28.03.2013
Check this mate
http://forum.sa-mp.com/showthread.ph...03#post2365503
It might help you.
There is maybe infinite loop. That's why my server was doing that once.
Re: Some strange issue with 0.3x R1-2 -
CoaPsyFactor - 28.03.2013
is it possible that script done rest of code even in while infinite loop?
I just saw I made little mistake here:
pawn Код:
while(House < MAX_HOUSES){
if(HouseInfos[House][hSQLID]){
DestroyDynamic3DTextLabel(HouseInfos[House][hTextLabelID]);
DestroyDynamicPickup(HouseInfos[House][hPickupEnterID]);
DestroyDynamicPickup(HouseInfos[House][hPickupExitID]);
}
if(!HouseInfos[House+1][hSQLID]) break;
}
As you can see there is not House++ in while so House is always < than MAX_HOUSES, but there is another thing that is confusing me, code after this while was finished, houses were loaded.