SA-MP Forums Archive
warning 213: tag mismatch - 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: warning 213: tag mismatch (/showthread.php?tid=622565)



warning 213: tag mismatch - Cerealguy - 24.11.2016

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 



Re: warning 213: tag mismatch - Stanford - 24.11.2016

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.


Re: warning 213: tag mismatch - Tass007 - 24.11.2016

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


Re: warning 213: tag mismatch - Vince - 24.11.2016

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


Re: warning 213: tag mismatch - BrianFaria - 24.11.2016

Displays the complete code


Respuesta: Re: warning 213: tag mismatch - Cerealguy - 26.11.2016

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!