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

need help input line too long


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 02-02-2019 , 10:34   need help input line too long
Reply With Quote #1

Need help input line too long (after substitutions)

PHP Code:
formatex(iQ,1023,"INSERT INTO %s_bans (type, steam, ip, name, reason, length, server_id, admin_id, admin_ip, create_time) VALUES  ('%s', '%s', '%s', UNIX_TIMESTAMP(), UNIX_TIMESTAMP() + %d, %d, '%s', IFNULL((SELECT admin_id FROM %s_admins WHERE steam = '%s' OR steam REGEXP '^^%s$'),'0'), '%s', (SELECT server_id FROM %s_servers WHERE ip = '%s' AND port='%s' LIMIT 0,1), ' ')"prefixIpsteamName, (banTime*60), (banTime*60), ReasonprefixAdminAuthidAdminAuthidadmin_ipprefixServerIpServerPort
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.

Last edited by sixten_8_9@; 02-02-2019 at 10:50.
sixten_8_9@ is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-02-2019 , 11:10   Re: need help input line too long
Reply With Quote #2

Code:
new szBuffer[1023], iLen; iLen = formatex(szBuffer, charsmax(szBuffer), "INSERT INTO %s_bans (type, steam, ip, name, reason, length, server_id, admin_id, admin_ip, create_time)", prefix); iLen += formatex(szBuffer[iLen], charsmax(szBuffer) - iLen, "VALUES  ('%s', '%s', '%s', UNIX_TIMESTAMP(), UNIX_TIMESTAMP() + %d, %d, '%s',", Ip, steam, Name, (banTime*60), (banTime*60), Reason) iLen += formatex(szBuffer[iLen], charsmax(szBuffer) - iLen, "IFNULL((SELECT admin_id FROM %s_admins WHERE steam = '%s' OR steam REGEXP '^^%s$'),'0'), '%s', ", prefix, AdminAuthid, AdminAuthid, admin_ip) iLen += formatex(szBuffer[iLen], charsmax(szBuffer) - iLen, "(SELECT server_id FROM %s_servers WHERE ip = '%s' AND port='%s' LIMIT 0,1), ' ')", prefix, ServerIp, ServerPort)
__________________








CrazY. 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 04:16.


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