SA-MP Forums Archive
[HELP] fix bug on blueberry Acres - 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: [HELP] fix bug on blueberry Acres (/showthread.php?tid=505460)



[HELP] fix bug on blueberry Acres - Elanggg - 08.04.2014

why my new log every spawn in BB? immediately after the crash?
how to fix it?





sorry for bad my english.


Re: [HELP] fix bug on blueberry Acres - UnknownOwner - 08.04.2014

Is it your server or someone else's?

If that's yours, try deleting your registration file from scriptfiles folder.


Re: [HELP] fix bug on blueberry Acres - Elanggg - 08.04.2014

I've tried many times but still remove bugs and crashes in BB


Re: [HELP] fix bug on blueberry Acres - VerticalGaming - 08.04.2014

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).


Re: [HELP] fix bug on blueberry Acres - Elanggg - 08.04.2014

I do not understand: 3, I am a newbie scripter


Re: [HELP] fix bug on blueberry Acres - UnknownOwner - 08.04.2014

Show us your OnPlayerConnect(playerid) callback.
Than we may be able to help

Greetings,
UnknownOwner


Re: [HELP] fix bug on blueberry Acres - Elanggg - 08.04.2014

public OnPlayerConnect(playerid)
{

no callbacks do onplayerconnect, there are only a few removebuilding [map]


Re: [HELP] fix bug on blueberry Acres - UnknownOwner - 08.04.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.


Re: [HELP] fix bug on blueberry Acres - BleverCastard - 08.04.2014

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.


Re: [HELP] fix bug on blueberry Acres - Elanggg - 08.04.2014

hemm okey thanks all