DataBase MySQL
#1

Hi.
Somedays ago I bought server on OS Linux. SAMP 0.3c R3
I have 1 problem. When I set DB settings in .ini file, server rightly connect with Database, but accounts and stats don't save up.
Someone tell me i must create tables in my DB, through PHPMyAdmin.
That's a question: What tables i must create?

Sorry for my English
Reply
#2

This depends on the gamemode/save script you are using. It should be explained in the topic of that script what you have to do to set it up.
Reply
#3

You should read this tutorial by [HiC]TheKiller

https://sampforum.blast.hk/showthread.php?tid=159785

He explains MySQL..
Reply
#4

I use that GameMode by Mlody626
http://solidfiles.com/d/5e150/
Reply
#5

Man, i don't understand why you don't ask that person, who sold for you the gamemode...
I think he can help you , and more , he need to be liable for the gamemode...
I suggest zou to ask him, beacuse it's hard to look around at all of gamemode for the tables and for all the fields in the table, mostly if you are not an advenced scripter...

It's just a suggetion, if you want you can ignor it
Reply
#6

Author who do that GameMode, don't sold me it.
Other person publish his GameMode in GTAOnline.pl

I don't know him, and I have no contact with him.

It's really important for me, because my server still works on data save File.
Reply
#7

That's tables?
Код:
new tmp[350];
		format(tmp, sizeof(tmp), "UPDATE `Players` SET `Pass` = '%s',`Score` = '%d',`Bank` = '%d',`Bounty` = '%d',`Kills` = '%d',`Deaths` = '%d',`Suicides` = '%d',`Used_Score` = '%d',`Skin` = '%d',`Row_Kills` = '%d',`Arena` = '%d',`Drag` = '%d',`Time` = '%d' WHERE `Nick` = '%s'",
I found it in .pwn file.
Reply
#8

Refresh.
Reply
#9

Refresh.
Reply
#10

update your linux OS

centOS : yum install update

Debian: apt-get update

after update installed:

centOS: yum install mysql mysql-server mysql-devel

Debian: sudo aptitude install install mysql-server mysql-client libmysqlclient15-dev
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)