SA-MP Forums Archive
Little logic - 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: Little logic (/showthread.php?tid=601837)



Little logic - Sanady - 27.02.2016

Hello everybody, I have problem with something, I created Load and save system for my house system which is using mysql, and now, house is loaded how do I create stock which will check which is house ID? How should I code it? I check few scripts but I don`t get it. Can anyone explain me a little bit?


Re: Little logic - Runn3R - 27.02.2016

You should have a hID in your enum.

And also you should have an A_I row for the ID to save and automaticly get a higher value than the old one when creating a house.

You load your ID from MySQL


Re: Little logic - Sanady - 27.02.2016

Ok, I load but how should I get index for my array?


Re: Little logic - Sanady - 28.02.2016

Anyone?