Error 075: Input line too long
#5

Use strcat to build the string and then format it all

pawn Код:
strcat(query, "INSERT INTO players (`id` , ");
    strcat(query, "`username` , `password` , `money` , `bank` , ");
    ...
    strcat(query, "VALUES (%i, %s, %s, %i, %i, %i, %i, %i, %i,  ");
    strcat(query, "%i, %i, %i, %i, %i, %s, NOW(), ");
    ...
    strcat(query, "%i, %i, %i, %i, %i, %i, %i)");
    format(query, sizeof(query), query, id+1, PlayerName(playerid), pPassword[0][playerid], 15000, PlayerInfo[playerid][pBank],
    PlayerInfo[playerid][pWeap1], PlayerInfo[playerid][pWeap2], ...);
Reply


Messages In This Thread
Error 075: Input line too long - by Biesmen - 16.02.2012, 12:40
Re: Error 075: Input line too long - by ReneG - 16.02.2012, 12:45
Re: Error 075: Input line too long - by Biesmen - 16.02.2012, 12:49
Re: Error 075: Input line too long - by Biesmen - 16.02.2012, 19:16
Re: Error 075: Input line too long - by MadeMan - 16.02.2012, 20:19
Re: Error 075: Input line too long - by Biesmen - 16.02.2012, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)