Raised This Month: $51 Target: $400
 12% 

[SQLITE] Imput line too long


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aguchox
Member
Join Date: Aug 2010
Old 03-24-2015 , 21:22   [SQLITE] Imput line too long
Reply With Quote #1

hello!, my problem is imput line too long, I tried everything and does not accommodate
PHP Code:
formatex(szQuerycharsmax(szQuery), "SELECT `nivel`, `ammopacks`, `resets`, `pts`, `ptsz`, `zmatados`, `infectados`, `access`, `znext`, \
                    `gastados`, `gastadosz`, `banco`, `banco1`, `banco2`, `banco3`, `banco4`, `bancoz`, `banco1z`, `banco2z`, `banco3z`, `banco4z`, `WPN_ON`, `WPN_PRI`, `WPN_SEC`, `WPN_TR`, `promo`, \
                    `mision`, `estado`, `mision2`, `kill`, `hclas`, `misionz`, `estadoz`, `mision2z`, `killz`, `x`, `y`, `y_a`, `colorf`, `colorn`, `colorh`, `colorhz`, `colorlm`, `titileo`, `new` FROM `personajes` WHERE nombre=^"
%s^""g_personaje_nombre[id]) 
anybody helpme?
aguchox is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-24-2015 , 23:28   Re: [SQLITE] Imput line too long
Reply With Quote #2

Why don't you just "SELECT *"? It looks like you have the whole database selected there. Anyways, you need to break the format into several formats.

However, since you are only actually formatting a single value, have you tried defining the string as a constant with the %s in it and then using it in the format function?
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode