SA-MP Forums Archive
MySQL Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Help (/showthread.php?tid=609568)



MySQL Help - GeorgeMcReary - 14.06.2016

Hello i am converting a Sqlite Filterscript into MySQL, because Sqlite is giving me some errors and i am not able to compile. so i need a small help. can you tell me how do i convert these lines in MySQL? thanks

PHP код:
new id, Float: pos[3], Float: rot[3];
    
stmt_bind_result_field(LoadTrees, 0, DB::TYPE_INTEGER, id);
    
stmt_bind_result_field(LoadTrees, 1, DB::TYPE_FLOAT, pos[0]);
    
stmt_bind_result_field(LoadTrees, 2, DB::TYPE_FLOAT, pos[1]);
    
stmt_bind_result_field(LoadTrees, 3, DB::TYPE_FLOAT, pos[2]);
    
stmt_bind_result_field(LoadTrees, 4, DB::TYPE_FLOAT, rot[0]);
    
stmt_bind_result_field(LoadTrees, 5, DB::TYPE_FLOAT, rot[1]);
    
stmt_bind_result_field(LoadTrees, 6, DB::TYPE_FLOAT, rot[2]); 
i changed others but can you please tell me how do i conert those lines into mySQL? thank you in advance.