Posts: 155
Threads: 10
Joined: Oct 2013
Reputation:
0
for(new s = 0; s < 12; s++) {
format(Query, sizeof(Query), "INSERT INTO playerdata (Gun%d) VALUES (0);", s)
mysql_query(Query);
}
Not very recommended though.
Posts: 124
Threads: 53
Joined: Dec 2013
Reputation:
0
Is that VALUES of guns data can make 12 data guns variables?
Posts: 1,166
Threads: 44
Joined: Sep 2009
Reputation:
0
If I'm correct you're trying to save the players weapons they have on them at that current point? If so you'll have to workout how many guns they have and GetPlayerWeapons then save them.
Posts: 155
Threads: 10
Joined: Oct 2013
Reputation:
0
If you already have the columns created, it will make 12 rows and each will have the value 0 on different columns.
Posts: 124
Threads: 53
Joined: Dec 2013
Reputation:
0
Okay..
I'll try that.
Why it's not recommended?
Posts: 155
Threads: 10
Joined: Oct 2013
Reputation:
0
MySQL is not very efficient if you have little knowledge for it.
Posts: 124
Threads: 53
Joined: Dec 2013
Reputation:
0
But MYSQL had strong Database.
Isn't it?
If there's another better than MYSQL..
What is it?