Line too long
#8

Quote:
Originally Posted by kirollos
Посмотреть сообщение
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);
I did something like 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), "UPDATE 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);
and now its working fine and it may cause any problem?
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)