SA-MP Forums Archive
GTA crashes caused by pickups. - 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: GTA crashes caused by pickups. (/showthread.php?tid=434288)



GTA crashes caused by pickups. - lQs - 01.05.2013

Okay, i have really big problem. I have my basic housing system, and when i log off, create the pickup, log in near this pickup my game crashes. Here's the code:

pawn Код:
AddStaticPickup(1239, 1, 372.8267,-118.8040,1001.4922, -1);
AddStaticPickup(1239, 1, -2236.8655,130.1791,1035.4141, -1);
AddStaticPickup(1239, 1, -27.3204,-89.9393,1003.5469, -1);
AddStaticPickup(1239, 1, 2271.1284,68.1912,26.4734, -1);
AddStaticPickup(1239, 1, 2241.8601,53.4129,26.4734, -1);
It not happens on other servers, only at this one if i create pickups and spawn near it.


Re: GTA crashes caused by pickups. - lQs - 03.05.2013

bump


Re: GTA crashes caused by pickups. - Faisal_khan - 03.05.2013

Post the server log.


Re: GTA crashes caused by pickups. - Red_Dragon. - 03.05.2013

I suggest using streamer plugin v2.6.1 and using this native instead of AddStaticPickup, so you will use CreateDynamicPickup with these parameters
pawn Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);