MySQL to Samp server - 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: MySQL to Samp server (
/showthread.php?tid=524130)
MySQL to Samp server -
Sturra - 05.07.2014
Hey,
Can anyone told me is it possible to put newest MySQL to larp GM. I want to update my gamemode, but i have no clue how to put MySQL to my gamemode. I tried this tutorial, but i don't understand this part. ((
https://sampforum.blast.hk/showthread.php?tid=159785))
Код:
CREATE TABLE IF NOT EXISTS TABLENAME(STRUCTURE)
Код:
ALTER TABLE table_name
ADD column_name datatype
Код:
INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)
Please help me out if you know how to fix it.

Regards, Sturra.
Re: MySQL to Samp server -
Sturra - 05.07.2014
Bump.
Re: MySQL to Samp server -
Dignity - 05.07.2014
What exactly is the issue? You don't know how to properly create tables, or?
Re: MySQL to Samp server -
Sturra - 05.07.2014
Quote:
Originally Posted by Mionee
What exactly is the issue? You don't know how to properly create tables, or?
|
That's right. I forget mention early that. When i try to compile my gm then pawno crashes. Is that because gamemode can't get connection to db?
Re: MySQL to Samp server -
Dignity - 05.07.2014
Can you show us your current code?
Re: MySQL to Samp server -
Sturra - 05.07.2014
It's exactly same like in tutorial. I copyed code from tutorial.
Re: MySQL to Samp server -
Vince - 05.07.2014
Maybe you should actually read the tutorial rather than just copying the codeboxes. Then you would've noticed that all of these are EXAMPLES.