mysql_connect(mysql_host,mysql_user,mysql_database,mysql_password);
mysql_query(
"CREATE TABLE IF NOT EXISTS `Accounts` ("\
"`AccID` int(10) NOT NULL AUTO_INCREMENT,"\
"`Username` varchar(24) NOT NULL,"\
"`Password` varchar(64) NOT NULL,"\
"`IP` varchar(16) NULL,"\
"`Money` int(15) NULL,"\
"`Score` int(15) NULL,"\
"`Kills` int(15) NULL,"\
"`Deaths` int(15) NULL,"\
"`Admin` int(15) NULL,"\
"`Donator` int(15) NULL,"\
"`Plantedbombs` int(15) NULL,"\
"`Defusedbombs` int(15) NULL,"\
"`Banned` int(15) NULL,"\
"`Banneddate` varchar(16) NULL,"\
"`BannedReason` varchar(64) NULL,"\
"`Bannedby` varchar(24) NULL,"\
"PRIMARY KEY (`AccID`)"\
") ENGINE=InnoDB DEFAULT CHARSET=latin1;");
C:\Users\Robust\Documents\My Received Files\swat.pwn(4067 -- 4083) : error 075: input line too long (after substitutions)
C:\Users\Robust\Documents\My Received Files\swat.pwn(4084) : warning 215: expression has no effect
C:\Users\Robust\Documents\My Received Files\swat.pwn(4084) : error 001: expected token: ";", but found "`"
C:\Users\Robust\Documents\My Received Files\swat.pwn(4084) : error 029: invalid expression, assumed zero
C:\Users\Robust\Documents\My Received Files\swat.pwn(4084) : error 017: undefined symbol "Bannedby"
C:\Users\Robust\Documents\My Received Files\swat.pwn(4084) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
format(Query,sizeof Query," mysql_query(
"CREATE TABLE IF NOT EXISTS `Accounts` ("\
"`AccID` int(10) NOT NULL AUTO_INCREMENT,"\
"`Username` varchar(24) NOT NULL,"\
"`Password` varchar(64) NOT NULL,"\
"`IP` varchar(16) NULL,"\
"`Money` int(15) NULL,"\
"`Score` int(15) NULL,"\
"`Kills` int(15) NULL,"\
"`Deaths` int(15) NULL,"\
"`Admin` int(15) NULL,"\
"`Donator` int(15) NULL,"\
"`Plantedbombs` int(15) NULL,"\
"`Defusedbombs` int(15) NULL,"\
"`Banned` int(15) NULL,"\
"`Banneddate` varchar(16) NULL,"\
"`BannedReason` varchar(64) NULL,"\
"`Bannedby` varchar(24) NULL,"\
"PRIMARY KEY (`AccID`)"\
") ENGINE=InnoDB DEFAULT CHARSET=latin1;");
mysql_query(Query);
pawn Code:
|
new Query[ Size ];
strcat(Query, "mysql_query(CREATE TABLE IF NOT EXISTS `Accounts` (\
`AccID` int(10) NOT NULL AUTO_INCREMENT,\
`Username` varchar(24) NOT NULL,\
`Password` varchar(64) NOT NULL,\
`IP` varchar(16) NULL,\
`Money` int(15) NULL,\
`Score` int(15) NULL,\
`Kills` int(15) NULL,\");
strcat(Query, "`Deaths` int(15) NULL,\
`Admin` int(15) NULL,\
`Donator` int(15) NULL,\
`Plantedbombs` int(15) NULL,\
`Defusedbombs` int(15) NULL,\
`Banned` int(15) NULL,\
`Banneddate` varchar(16) NULL,\
`BannedReason` varchar(64) NULL,\
`Bannedby` varchar(24) NULL,\
PRIMARY KEY (`AccID`)\
) ENGINE=InnoDB DEFAULT CHARSET=latin1;");
mysql_query(Query);
C:\Users\Robust\Documents\My Received Files\swat.pwn(4068) : error 037: invalid string (possibly non-terminated string) C:\Users\Robust\Documents\My Received Files\swat.pwn(4068 -- 4076) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Robust\Documents\My Received Files\swat.pwn(4076) : warning 215: expression has no effect C:\Users\Robust\Documents\My Received Files\swat.pwn(4076) : error 001: expected token: ";", but found ")" C:\Users\Robust\Documents\My Received Files\swat.pwn(4076) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
new Query[ Size ];
strcat(Query, "mysql_query(CREATE TABLE IF NOT EXISTS `Accounts` (\
`AccID` int(10) NOT NULL AUTO_INCREMENT,\
`Username` varchar(24) NOT NULL,\
`Password` varchar(64) NOT NULL,\
`IP` varchar(16) NULL,\
`Money` int(15) NULL,\
`Score` int(15) NULL,\
`Kills` int(15) NULL");
strcat(Query, ",\`Deaths` int(15) NULL,\
`Admin` int(15) NULL,\
`Donator` int(15) NULL,\
`Plantedbombs` int(15) NULL,\
`Defusedbombs` int(15) NULL,\
`Banned` int(15) NULL,\
`Banneddate` varchar(16) NULL,\
`BannedReason` varchar(64) NULL,\
`Bannedby` varchar(24) NULL,\
PRIMARY KEY (`AccID`)\
) ENGINE=InnoDB DEFAULT CHARSET=latin1;");
mysql_query(Query);
C:\Users\Robust\Documents\My Received Files\swat.pwn(4087) : error 027: invalid character constant C:\Users\Robust\Documents\My Received Files\swat.pwn(4087) : error 027: invalid character constant C:\Users\Robust\Documents\My Received Files\swat.pwn(295) : warning 204: symbol is assigned a value that is never used: "Killit" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
) ENGINE=InnoDB DEFAULT CHARSET=latin1;");
new Query[ size ];
strcat(Query, "mysql_query(CREATE TABLE IF NOT EXISTS `Accounts` (\
`AccID` int(10) NOT NULL AUTO_INCREMENT,\
`Username` varchar(24) NOT NULL,\
`Password` varchar(64) NOT NULL,\
`IP` varchar(16) NULL,\
`Money` int(15) NULL,\
`Score` int(15) NULL,\
`Kills` int(15) NULL,");
strcat(Query, "`Deaths` int(15) NULL,\
`Admin` int(15) NULL,\
`Donator` int(15) NULL,\
`Plantedbombs` int(15) NULL,\
`Defusedbombs` int(15) NULL,\
`Banned` int(15) NULL,\
`Banneddate` varchar(16) NULL,\
`BannedReason` varchar(64) NULL,\
`Bannedby` varchar(24) NULL,\
PRIMARY KEY (`AccID`)) ENGINE=InnoDB DEFAULT CHARSET=latin1;");
mysql_query(Query);