Posts: 46
Threads: 13
Joined: Feb 2014
Reputation:
0
why my new log every spawn in BB? immediately after the crash?
how to fix it?
sorry for bad my english.
Posts: 368
Threads: 21
Joined: Jan 2014
Is it your server or someone else's?
If that's yours, try deleting your registration file from scriptfiles folder.
Posts: 46
Threads: 13
Joined: Feb 2014
Reputation:
0
I've tried many times but still remove bugs and crashes in BB
Posts: 138
Threads: 26
Joined: Mar 2014
Reputation:
0
You mean when you crash, you spawn at blueberry spawn?
Fix onplayerdisconnect (saving positions).
Also you can make a function onplayerupdate.
Save their data every second. (Only last pos, or you will lag alot).
Posts: 46
Threads: 13
Joined: Feb 2014
Reputation:
0
I do not understand: 3, I am a newbie scripter
Posts: 368
Threads: 21
Joined: Jan 2014
Show us your OnPlayerConnect(playerid) callback.
Than we may be able to help
Greetings,
UnknownOwner
Posts: 46
Threads: 13
Joined: Feb 2014
Reputation:
0
public OnPlayerConnect(playerid)
{
no callbacks do onplayerconnect, there are only a few removebuilding [map]
Posts: 368
Threads: 21
Joined: Jan 2014
Then try this under OnPlayerSpawn callback:
https://sampwiki.blast.hk/wiki/SetPlayerPos
And make sure the positions aren't "0,0,0.2" as they are in blueberry, which would obviously cause crash!
Regards,
UnknownOwner.
Posts: 845
Threads: 123
Joined: Dec 2011
Reputation:
0
Or a simpler way would be detecting if the players coords are 0.0, 0.0, 0.0 when they spawn. if they are, set their coords to another place.