15.09.2011, 11:34
(
Последний раз редактировалось Markx; 15.09.2011 в 12:52.
)
Fixed.
new string[500]; //should be big enough
format(string, sizeof string, "long text 1 here");
strcat(string, "this text will be added to 'string' ");
strcat(string, "this text will be added to the new string (which contains the text above)");
//then here you use "string" instead of your long text (as "string" now contains all the text)
format(query, sizeof(query), "INSERT INTO playerdata (user, password) VALUES ('%s', '%s')", pname, passwordstring);
format(query, sizeof(query), "INSERT INTO playerdata (user, password, score, money, level, vip, \
kma, rank, kills, deaths, muted, jailed, frozen, mutedtimes, jailedtimes, frozentimes, banned, bannedby, \
logins, cookies, warns, warn1reason, warn2reason, warn3reason, recordkillsteak, registerdate, laston, posx, \
posy, posz, posa, IP");
format(query, sizeof(query), "VALUES('%s', SHA1('%s'), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '%s', 0, 0, 0, \ //Error line
'N/A', 'N/A', 'N/A', '%s', '%s', 0, 0, 0, 0, '%s')", pname, passwordstring, Bannedby, ReggDate, LastOn, IP);
pawn Код:
|