Raised This Month: $ Target: $400
 0% 

Input line is too long[Compile error]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-09-2010 , 13:59   Re: Input line is too long[Compile error]
Reply With Quote #2

Use \

PHP Code:
new const szTables[][] =  

    
"CREATE TABLE IF NOT EXISTS `d2_data` ( `player_steamid` varchar(25) NOT NULL default '', \
    `player_ip` varchar(20) NOT NULL default '', `player_name` varchar(35) NOT NULL default '', \
    `player_data` varchar(4096) NOT NULL default '', `player_data2` varchar(4096) NOT NULL default '', \
    `player_data3` varchar(4096) NOT NULL default '', PRIMARY KEY  (`player_name`, `player_ip`, `player_steamid`), \
    KEY `player_data` (`player_data`), KEY `player_data2` (`player_data2`), KEY `player_data3` (`player_data3`) ) TYPE=MyISAM;"



But [][] tells that a 2 dimensions array follow, and you only put a 1 dimension array, so be carefull.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 07:22.


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