SA-MP Forums Archive
Snow crashing - 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: Snow crashing (/showthread.php?tid=295942)



Snow crashing - _Outbreak_ - 08.11.2011

pawn Код:
for(new i=0; i<SLOTS; i++)
{
    SetPlayerAttachedObject(i, 5, 18864, 10, 0,0 -10);
}
For some reason this causes everyone's client to crash in the server. If there are two players it works fine, if there's three or more it crashes the players client.

Any idea why?


Re: Snow crashing - LeNy - 08.11.2011

try:
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerAttachedObject(playerid, 1, 18864, 10, 0, 0 -10);
return true;
}
OnPlayerDeath and OnPlayerDisconnect:
pawn Код:
RemovePlayerAttachedObject(playerid, 1);
Wiki for help:
-> SetPlayerAttachedObject
-> RemovePlayerAttachedObject


Re: Snow crashing - _Outbreak_ - 08.11.2011

Thanks for the reply, it still crashes everyone even if one player spawns. It only works with one or two players connected, otherwise it crashes the client.


Re: Snow crashing - EVIL666 - 08.11.2011

Quote:
Originally Posted by _Outbreak_
Посмотреть сообщение
Thanks for the reply, it still crashes everyone even if one player spawns. It only works with one or two players connected, otherwise it crashes the client.
Better to take that off in your server bro


Re: Snow crashing - Jay_ - 08.11.2011

It's obviously a SA-MP bug. You should post it in the 0.3d scripting boards.


Re: Snow crashing - LeNy - 08.11.2011

I do not know what the error lies, but none of the objects of snow does not load up
Код:
18863	SnowArc1
18864	FakeSnow1
Perhaps the error is the same version 0.3d