Error ID: 1064, MySQL
#1

Having problems.

Here

Код:
[06:33:13] CMySQLHandler::Query(INSERT INTO `rfxtable` ('user', 'IP', 'Password', 'AccId', 'NoPrivM', 'Clothes', 'MissionCompleted', 'AgentCard', 'Story', 'BankPin', 'BankWealth', 'Banned', 'AdminLevel', 'VIPLevel', 'Money', 'Score', 'Kills', 'Deaths') VALUES ('[Air]Jake_Hero', '127.0.0.1', SHA1('finnandjake'), '39', '0', '-1', ') - An error has occured. (Error ID: 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 ''user', 'IP', 'Password', 'AccId', 'NoPrivM', 'Clothes', 'MissionCompleted', 'Ag' at line 1)
To sleepy to explain all..

Ok i will make it fast, The problem is, It doesn't let me create a new table when i register, However it works just like nothing.., I want to fix this problem, But can't find any solution, I'm to sleepy to search in the whole website..

Can someone explain why i'm having this problem!!

pawn Код:
stock MySQL_Register(playerid, passwordstring[])
{
    new q[300], IP[16];
    GetPlayerIp(playerid, IP, 16);
    new c = pInfo[playerid][Clothes];
    new m = pInfo[playerid][MissionCompleted];
    new format2[41];
    format(format2, 41, "%s", pInfo[playerid][AgentCard]);
    new s = pInfo[playerid][Story];
    new pm = pInfo[playerid][NoPM];
    pInfo[playerid][AccID] = ServerInfo[AccID];
    new ac = pInfo[playerid][AccID];
    new bw = pInfo[playerid][BankWealth];
    new b = pInfo[playerid][Banned];
    new at = pInfo[playerid][Admin];
    new v = pInfo[playerid][Vip];
    new k = pInfo[playerid][Kills];
    new d = pInfo[playerid][Deaths];
    format(q, sizeof(q), "INSERT INTO `rfxtable` ('user', 'IP', 'Password', 'AccId', 'NoPrivM', 'Clothes', 'MissionCompleted', 'AgentCard', 'Story', 'BankPin', 'BankWealth', 'Banned', 'AdminLevel', 'VIPLevel', 'Money', 'Score', 'Kills', 'Deaths') VALUES ('%s', '%s', SHA1('%s'), '%d', '%d', '%d', '%d', '%s', '%d', '%s', '%d', '%d', '%d', '%d',  5000, 0, '%d')", GetName(playerid), IP, passwordstring, ac, pm, c, m, format2, s, bw, b, at, v, k, d);
    mysql_query(q);
    return 1;
}
And how to create Account ID system??
Reply


Messages In This Thread
Error ID: 1064, MySQL - by JaKe Elite - 16.11.2012, 13:30
Re: Error ID: 1064, MySQL - by ReneG - 16.11.2012, 13:35
Re: Error ID: 1064, MySQL - by Jarnu - 16.11.2012, 13:50
Re: Error ID: 1064, MySQL - by JaKe Elite - 16.11.2012, 22:56
Re: Error ID: 1064, MySQL - by ReneG - 17.11.2012, 00:47
Re: Error ID: 1064, MySQL - by JaKe Elite - 17.11.2012, 01:25
Re: Error ID: 1064, MySQL - by JaKe Elite - 17.11.2012, 07:03
Re: Error ID: 1064, MySQL - by Jarnu - 17.11.2012, 07:11
Re: Error ID: 1064, MySQL - by JaKe Elite - 17.11.2012, 07:21
Re: Error ID: 1064, MySQL - by Jochemd - 17.11.2012, 07:29

Forum Jump:


Users browsing this thread: 2 Guest(s)