Snow crashing
#1

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?
Reply
#2

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
Reply
#3

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.
Reply
#4

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
Reply
#5

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)