13.03.2008, 19:30
Quote:
Originally Posted by webflashing
--------------------------------------------------------------------
OK, SORRY I FORGOT TO MENTION SOMETHING ON THE TUTORIAL. I FORGOT TO INCLUDE ON THE .RAR PACKAGE THE .INC FILE SO NOW I HAVE UPDATED THIS TUTORIAL. PLEASE FOLLOW IT *AGAIN* WITH ALL OF IT'S STEPS. SORRY ---- Web -------------------------------------------------------------------- Ok everybody, as i'm seeing that ALMOST EVERYONE on this topic has a problem with the MYSQL stuff, i'll write a *little* tutorial on how making this script work. 1.- First, download the script from here http://www.sendspace.com/file/suliqy Now that you have the script, let's focus on the MYSQL thing. 2.- Next thing to do is to download the MYSQL plugin. As the package was too heavy, i repacked it with the necessary files ONLY. You can download it from here http://www.sendspace.com/file/v5aazt 3.- Now that you have the package, INSIDE it, you will find that the files are already in their own folders, the ONLY thing you should do now is copy the content of the .RAR into your server's folder. And after that, you should open your server.cfg and add the line plugins sampmysql at the end of the file. Edit: Now put the *.inc* file on the includes folders of the pawno. That should fic the error that some of you were having. 4.- Ok, that was easy until now. This step is going to explain HOW TO set up a MYSQL server... 5.- First, you will need to download XAMPP (This will be your Mysql server...) http://ufpr.dl.sourceforge.net/sourc...-installer.exe After you download it, you sholud install it with the Apache and PhpMyAdmin features (asked on the installer). 6.- Ok, now after the installation the Mysql server should be running, the only thing you have to do is to enter http://localhost/xampp and select the link that says "PhpMyAdmin". Once you clicked on it, you should see a new page, where there is a lot of stuff. 7.- As i'm not in my computer, I dont really remember how, ut it should be a textbox somewere where you create a un database. In that textbox, you should write SAMP, and then click on the button "create" (or something like that). Once donde this, on the left panel, it should appear now the text "samp (0)". That means it has 0 tables inside. So now, let's click on the "samp (0)" link, and then on the right panel, on the top, we should clik "Import". Here is where we search for the database which comes with the script, and the we import it. Ok, by doing this, you just run the server and it should work. Any question, please ask. And remember, the script has too many bugs, if someone WANTS to start fixing them, you'l count with me, cause i'm trying to make the same. Please let me know if this tutorial was useful for you. Thanks. ---- Web |
:
Fout
SQL-query:
/* * * -- Moderntopia: Los Santos -- * version 1.0 beta * * by Novice, Luk0r, Shehab, Ehren * based on the original Godfather script by FeaR * */#define SCRIPT_VERSION "mtrp-final 1.0 forum release"
#include <a_samp>
#include <a_sampmysql>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
static gTeam[MAX_PLAYERS];
MySQL retourneerde:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'static gTeam[MAX_PLAYERS]' at line 1