warning 213: tag mismatch
#1

PHP код:
vInfo[id][ParkX] = X;
            
vInfo[id][ParkY] = Y;
            
vInfo[id][ParkZ] = Z;
            
vInfo[id][ParkA] = Angle;
            
DestroyVehicle(vehicleid);
            
format(fquery,sizeof(fquery), "UPDATE `vehicles` SET X = '%f', Y = '%f', Z = '%f', A = '%f' WHERE ID = 2",
                                                                                                    
DB_Escape(vInfo[id][ParkX]), // HERE
                                                                                                    
DB_Escape(vInfo[id][ParkY]), // HERE
                                                                                                    
DB_Escape(vInfo[id][ParkZ]), // HERE
                                                                                                    
DB_Escape(vInfo[id][ParkA])); //HERE 
Reply
#2

Try wihout DB_Escape.

By the way, is this a dynamic vehicle system? if so I think that you should replace 2 at "WHERE ID = 2" with the appropriate value.
Reply
#3

How are you defining Park(x/y/z/a)?
Reply
#4

Only strings need escaping. Floating point values cannot contain special characters.
Reply
#5

Displays the complete code
Reply
#6

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Try wihout DB_Escape.

By the way, is this a dynamic vehicle system? if so I think that you should replace 2 at "WHERE ID = 2" with the appropriate value.
yes i have a fuction to get id, id 2 is for test, thanks

Quote:
Originally Posted by Vince
Посмотреть сообщение
Only strings need escaping. Floating point values cannot contain special characters.
Ohh ok bro thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)