Raised This Month: $ Target: $400
 0% 

Stack error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jonatat
Senior Member
Join Date: Dec 2017
Old 06-10-2018 , 11:05   Stack error
Reply With Quote #1

Hello i have a .txt file with 1 line like a "5sd5f6g3v24ge5". I want to open that file and write to database. My plugin looks like that:

PHP Code:
public StartGameLIVEmYSQL()
{
new 
szDirectory[128];
get_configsdirszDirectorycharsmaxszDirectory ) )
addszDirectorycharsmaxszDirectory ), "/MIXID.txt" )

new 
size file_sizeszDirectory)  

new 
szLine128 ], iLen

for ( new size i++ ) 

read_fileszDirectoryiszLinecharsmaxszLine ), iLen )
}
new 
szQuery[3800]; 
new 
map_name[64];
get_mapname(map_name63)
formatex(szQuery3799"INSERT INTO matches (`match_id`, `map`, `played_at`, `left_score`, `right_score`, `state`, `server`, `left_team_id`, `right_team_id`, `game_id`) VALUES ('%s', '%s', NOW(), '0', '0', '0', 'cs.bigmatch.eu:27011, '1', '1', '3');"szLinemap_name);
SQL_ThreadQueryg_hTuple"QuerySetData"szQuery); 

But getting error

PHP Code:
[AMXXRun time error 3stack error
L 06
/10/2018 18:02:33: [AMXX]    [0blogiausias.sma::StartGameLIVEmYSQL (line 458
Any info? Help? Thanks!
jonatat is offline
 


Thread Tools
Display Modes

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:36.


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