SA-MP Forums Archive
Help with MySql and Arry - 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 with MySql and Arry (/showthread.php?tid=447139)



Help with MySql and Arry - amit133 - 28.06.2013

Hello
I Started to convert my mode to using MySQL
But in my clan system the hq's loaded from the clan's file.
For example
if cInfo[i][cObjects] == 50
so its would load 50 objects(50 lines in file)
So how can I conver this to MYSQL??
(The title is Help with MySQL and Arry because the objects its like a dynamic arry that his size changed and in the file its add lines when the arry get bigger).

Sorry for my English....


Re: Help with MySql and Arry - Scenario - 28.06.2013

You should go learn a little bit about MySQL before you try using it. Vince has a few tutorials on the proper usage of MySQL and outside of this forum are thousands of different tutorials that you could use to gain some knowledge.

The key things you need to look at would be the syntax, the keywords, and table structure. Then you should look into more advanced things.


Re: Help with MySql and Arry - amit133 - 29.06.2013

I know how to use basic MySQL
but this thing I never try to do..
so how I do it?


Re: Help with MySql and Arry - introzen - 29.06.2013

If you know basic sql you should know how to do this. Go read some more.


Re: Help with MySql and Arry - amit133 - 29.06.2013

But I don't know how to add cols through pawn
and every clan have a diffrent number of objects so its can't be the same in every clan


Re: Help with MySql and Arry - amit133 - 29.06.2013

Up..


Re: Help with MySql and Arry - Scenario - 29.06.2013

Read the forum rules please.

You don't add tables and columns through PAWN- that's just stupid. Use phpMyAdmin or another MySQL database editing tool.