MYSQL Error
#1

I'm using mysql script. But I have some error at cmd Can They Help Me?

Error:
PHP код:
[02/07/2015 17:26:38]  ========================================== 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |  new version (v3.09.0684of YSI is  
[
02/07/2015 17:26:38]  |            available from:             | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |     www.y-less.com/YSI/YSI_1.0.zip     
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  | Changelog:                             | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   1.04.0000:                           | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   RC 1 for YSI 3.0.  Available from:   | 
[
02/07/2015 17:26:38]  | http://www.y-less.com/YSI/YSI_3.0.rar  | 
[02/07/2015 17:26:38]  | - includes MANY new libraries and      | 
[
02/07/2015 17:26:38]  | fixessee                             
[
02/07/2015 17:26:38]  | http://forum.sa-mp.com/showthread.php? | 
[02/07/2015 17:26:38]  | p=1425938 for more informationwith   
[
02/07/2015 17:26:38]  | more topics and updates due over the   
[
02/07/2015 17:26:38]  | next few weeks.  In briefAdded       
[
02/07/2015 17:26:38]  | "y_inline""y_text""y_users",       | 
[
02/07/2015 17:26:38]  | "y_uvar""y_svar""y_remote";        | 
[
02/07/2015 17:26:38]  | updated "y_timers""y_iter"MANY     
[
02/07/2015 17:26:38]  | MANY fixes and tweaks in almost every  
[
02/07/2015 17:26:38]  | other library.                         | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   3.00.0000:                           | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   YSI 3.0 released!  Now includes the  
[
02/07/2015 17:26:38]  | "y_text" library for better messages,  | 
[
02/07/2015 17:26:38]  | and a reworked "y_classes" library.    | 
[
02/07/2015 17:26:38]  | Largely documented here                
[
02/07/2015 17:26:38]  | "http://forum.sa-mp.com/showthread.php | 
[02/07/2015 17:26:38]  | ?t=321092"
.                            | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   3.01.0002:                           | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   Small fixes to "y_text" and          | 
[
02/07/2015 17:26:38]  | "y_classes".                           | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   3.09.0684:                           | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  |   Reverted to old download location.   | 
[
02/07/2015 17:26:38]  | Improved (and fixedversion checks;   | 
[
02/07/2015 17:26:38]  | added y_bitmapy_areasy_races,      | 
[
02/07/2015 17:26:38]  | y_zonenamesbetter documentation;     | 
[
02/07/2015 17:26:38]  | MANY other bug fixes see the github  
[
02/07/2015 17:26:38]  | repository for more details:           | 
[
02/07/2015 17:26:38]  |                                        | 
[
02/07/2015 17:26:38]  ========================================== 
[
02/07/2015 17:26:38]  
[
02/07/2015 17:26:38errorid1651 HataQuery cache is disabledrestart the server with query_cache_type=1 to enable it callbackOnQueryFinish queryset session query_cache_type=0; | connection handleresultidextraid0
[02/07/2015 17:27:28] [connection127.0.0.1:64446 requests connection cookie.
[
02/07/2015 17:27:29Incoming connection127.0.0.1:64446 id0
[02/07/2015 17:27:29] [joinArthur_Steve has joined the server (0:127.0.0.1)
[
02/07/2015 17:27:40errorid1064 HataYou have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID = 82' at line 1 callbackOnQueryFinish queryUPDATE players SET SMSLog 0TriageTime 0Married 0MarriedTo 'Nobody'Flag ''ReferredBy '0'RefTokens 0RefTokensOffline 0Helper 0GangMod 0LiveBanned 0WHERE ID 82 connection handleresultid10 extraid0
[02/07/2015 17:27:51] [partArthur_Steve has left the server (0:1)
[
02/07/2015 17:27:52errorid1064 HataYou have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID = 82' at line 1 callbackOnQueryFinish queryUPDATE players SET SMSLog 0TriageTime 0Married 0MarriedTo 'Nobody'Flag ''ReferredBy '0'RefTokens 0RefTokensOffline 0Helper 0GangMod 0LiveBanned 0WHERE ID 82 connection handleresultid10 extraid0
[02/07/2015 17:28:16] [connection127.0.0.1:64447 requests connection cookie.
[
02/07/2015 17:28:17Incoming connection127.0.0.1:64447 id0
[02/07/2015 17:28:18] [joinAlessio_Giani_Alfio has joined the server (0:127.0.0.1)
[
02/07/2015 17:30:24] [partAlessio_Giani_Alfio has left the server (0:1)
[
02/07/2015 17:30:25errorid1064 HataYou have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID = 67' at line 1 callbackOnQueryFinish queryUPDATE players SET SMSLog 0TriageTime 0Married 0MarriedTo 'Nobody'Flag ''ReferredBy '0'RefTokens 0RefTokensOffline 0Helper 0GangMod 0LiveBanned 0WHERE ID 67 connection handleresultid10 extraid
Line:
PHP код:
            format(szQuerysizeof(szQuery), "UPDATE players SET SMSLog = %d, TriageTime = %d, Married = %d, MarriedTo = '%s', Flag = '%s', ReferredBy = '%s', RefTokens = %d, RefTokensOffline = %d, Helper = %d, GangMod = %d, LiveBanned = %d, WHERE ID = %d",
            
PlayerInfo[extraid][pSmslog], PlayerInfo[extraid][pTriageTime], PlayerInfo[extraid][pMarried], szMarriedToszFlagszReferredByPlayerInfo[extraid][pRefTokens], PlayerInfo[extraid][pRefTokensOffline], PlayerInfo[extraid][pHelper],
            
PlayerInfo[extraid][pGangMod], PlayerInfo[extraid][pLiveBanned], PlayerInfo[extraid][pID]); 
Reply
#2

PHP код:
format(szQuerysizeof(szQuery), "UPDATE players SET SMSLog = %d, TriageTime = %d, Married = %d, MarriedTo = '%s', Flag = '%s', ReferredBy = '%s', RefTokens = %d, RefTokensOffline = %d, Helper = %d, GangMod = %d, LiveBanned = %d WHERE ID = %d"
            
PlayerInfo[extraid][pSmslog], PlayerInfo[extraid][pTriageTime], PlayerInfo[extraid][pMarried], szMarriedToszFlagszReferredByPlayerInfo[extraid][pRefTokens], PlayerInfo[extraid][pRefTokensOffline], PlayerInfo[extraid][pHelper], 
            
PlayerInfo[extraid][pGangMod], PlayerInfo[extraid][pLiveBanned], PlayerInfo[extraid][pID]); 
Try this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)