MySQL Server
#1

Hello everyone,

Iґm looking for a program that can set .ini to SQL. So I can put all my scriptfiles (.ini) to SQL. So I need to put in all tables and it will convert to SQL.

Greetzzz Alves
Reply
#2

How many player accounts you got?
Reply
#3

500 active ones I just need a program to put in tables so they will get converted to SQL Query.
Reply
#4

Make a backup of your script then edit it so it loads the player accounts from a file then make a function like OnPlayerUpdate that saves them to MYSQL
Reply
#5

Is that possible? Could you give me an example because Iґm not that good with SQL...
Reply
#6

should be something like this:

Code:
format(string,sizeof(string),"INSERT INTO table (level,points,money,...,...) VALUES (%d,%d,%d,...,...)",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pPoints],...,...);
					samp_mysql_query(string);
after the read-out of OnPlayerLogin.
Reply
#7

Can you take the normal GF and modify it to make this work? Please
Reply
#8

Quote:
Originally Posted by Luiss
Can you take the normal GF and modify it to make this work? Please
ModernTopia
Reply
#9

But if I needed to GF please help me
Reply
#10

Quote:
Originally Posted by Luiss
But if I needed to GF please help me
Don't hi-jack threads.

Visit http://forum.sa-mp.com/index.php?topic=24634.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)