SA-MP Forums Archive
Garbage items - 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: Garbage items (/showthread.php?tid=650378)



Garbage items - PepsiCola23 - 26.02.2018

So i want to create garbage objects near almost everyhouse and then use it as coordinates for a checkpoint for a job.
The question is,whats the best way of doing it? Storing the coordinates in a mysql table and then load them like houses,cars etc or just make an array with all the coords?


Re: Garbage items - Stuntff - 26.02.2018

Why MySQL? Will you change this data at least once? If not, do an array in ur gm


Re: Garbage items - PepsiCola23 - 26.02.2018

and how should i create the objects? if the array is like
PHP код:
{x1,y1,z1},
{
x2,y2,z2},
... 
how should the CreateDynamicObject should look?