SA-MP Forums Archive
[help me] mysql error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: [help me] mysql error (/showthread.php?tid=77735)



[help me] mysql error - eve04newer - 14.05.2009

Quote:

<a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <dprop>
#include <a_sampmysql>
#include <xStreamer>
#define MYSQL_HOST "127.0.0.1"
#define MYSQL_USER ""
#define MYSQL_PASS ""
#define MYSQL_DB ""
#define hostname "Afterday Tomorrow - Role Play" // set your server name
#define mapname "San Andreas" // map?
#define weburl "ad2morrow.itzoneclub.com" // set your web url here
#define version "ADTRP: v.2.0.6.0" // set the gamemode name here
#define C_DRUG 3
#define C_SMALL 6
#define C_LARGE 7
#define C_SPECIAL 5
#define C_LOCATIONS 6
#define C_DISTRIBUTION 3
#define C_VEHICLES 700
#define C_DIST_MAX_DRUGS 10
#define C_DIST_MAX_GUNS 10
#define C_TEXT_LIMIT 200
#define C_VEH_ITEMS_LIMIT 10
#define C_LEVEL_TWO 2000
#define C_LEVEL_THREE 4000
#define C_LEVEL_FOUR 8000
#define A_ITEMS_LIMIT 5
#define A_LEVEL_TWO 100
#define A_LEVEL_THREE 200
#define A_LEVEL_FOUR 400
#define C_PLAYER_LOAD_LIMIT 100
#define C_HQ_LIMIT 5000
new InCargoBob[MAX_PLAYERS], CargoHours[MAX_PLAYERS], CargoMinutes[MAX_PLAYERS], bool : ObjectsAdded[MAX_PLAYERS];



MySQL SHOW:

#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 'new InCargoBob[MAX_PLAYERS],CargoHours[MAX_PLAYERS],CargoMinutes[MAX_PLAYERS],bo' at line 1
help me


Re: [help me] mysql error - Limex - 15.05.2009

Код:
new InCargoBob[MAX_PLAYERS], CargoHours[MAX_PLAYERS], CargoMinutes[MAX_PLAYERS], bool:ObjectsAdded[MAX_PLAYERS];
Try removing the spaces from the bool and ObjectsAdded. See how it goes x]