Line too long
#7

Quote:
Originally Posted by Deal-or-die
Посмотреть сообщение
Try this
pawn Код:
format(query, sizeof(query), "INSERT INTO data (user, password, IP, score, money, kills, deaths, registered, loggedin, level, cookies, cakes, biscuits, icecreams, YG, unlimitedb, quickweapon, vgoto, playerfly, TP, YGFunction1) VALUES('%s', SHA1('%s'), '%s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)",pname,passwordstring,IP);
mysql_query(query);
format(query, sizeof(query), "INSERT INTO data (YGFunction2, YGFunction3, YGFunction4, YGFunction5, YGFunction6, Bank, weed, Condoms, inalcatraz, hours, minutes, seconds, x1, y1, z1, interior1) VALUES(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)");
mysql_query(query);
that will make 2 accounts on database.

@crazyboobs,

try this

pawn Код:
new longstring[1000];

strcat(longstring, "(user, password, IP, score, money, kills, deaths, registered, loggedin, level, cookies, cakes, biscuits, icecreams, YG, unlimitedb, quickweapon, vgoto,");
strcat(longstring, " playerfly, TP, YGFunction1, YGFunction2, YGFunction3, YGFunction4, YGFunction5, YGFunction6, Bank, weed, Condoms, inalcatraz, hours, minutes, seconds, x1, y1, z1, interior1)");

format(query, sizeof(query), "INSERT INTO data %s VALUES('%s', SHA1('%s'), '%s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", longstring, pname, passwordstring, IP);
Reply


Messages In This Thread
Line too long - by Crazyboobs - 02.09.2012, 14:38
Re: Line too long - by mamorunl - 02.09.2012, 14:41
Re: Line too long - by Deal-or-die - 02.09.2012, 14:47
Re: Line too long - by Crazyboobs - 02.09.2012, 22:12
Re: Line too long - by mamorunl - 02.09.2012, 22:22
Re: Line too long - by Crazyboobs - 02.09.2012, 22:24
Re: Line too long - by Kirollos - 02.09.2012, 22:25
Re: Line too long - by Crazyboobs - 02.09.2012, 22:38
Re: Line too long - by mamorunl - 02.09.2012, 22:45
Re: Line too long - by Crazyboobs - 02.09.2012, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)