Posts: 220
Threads: 54
Joined: Jan 2014
Good morning.
I try to pass this code works for ini (At least for file management) for MySQL.
Thank you in advance:
pawn Код:
stock IDExistantWeed()
{
for(new trouver = 1; trouver < Max_Weed; trouver++)
{
format(FormatCompte,sizeof FormatCompte,"Weed/%d.ini",trouver);
if(fexist(FormatCompte))
{
}
else
{
new ID = trouver;
return ID;
}
}
return 1;
}
Posts: 662
Threads: 102
Joined: Sep 2010
Reputation:
0
I do not suggest you using SQL without knowledge, try looking at tutorials to understand basic sql syntax.
Although, for such things, I suggest you using Y_INI
Posts: 220
Threads: 54
Joined: Jan 2014
I just want the code with explanations
Posts: 662
Threads: 102
Joined: Sep 2010
Reputation:
0
What is there to explain? Create a MYSQL server, get a connection to it, then create a table for "weed" function and insert into table, and then update it...
simple as that
There's some things that do not require to be a part of mysql system. This deffineatly is not one of them
Posts: 220
Threads: 54
Joined: Jan 2014
No, but how to get the code in there dini in functional code for MySQL.
Posts: 220
Threads: 54
Joined: Jan 2014
Either you help me or you not help me.
Posts: 662
Threads: 102
Joined: Sep 2010
Reputation:
0
Do you expect everybody to "work for you" while you do not even bother to do anything yourself...
if you wish to have any help answer these questions:
1. Do you have MySql server set up?
2. Do you have MYSQL Plugin loaded?
3. Do you have any SQL knowledge?
3.1: If no, why do you bother, It is not going to do anything better to you than any ini.
Posts: 220
Threads: 54
Joined: Jan 2014
Yes I have it all.
This code is that I do not see how to do it, that's all
Posts: 662
Threads: 102
Joined: Sep 2010
Reputation:
0
I doubt so, because you could have started sql query then.
We can't help since you haven't gave us database handle.
Nor the table.