Worries with UPDATE MySQL.
#1

Hi to all.

Well, so I have a (big) problems with my gamemode.
Don, I'll directos in the heart of the matter:
When I buy a vehicle, it correctly records the name of the buyer in my table, then when it gets into the car I run a callback or it said UPDATE-table, it keeps the name, but then the UPDATE second it puts "Aucun."
See my log (I cut if too long):
PHP код:
[23:19:36]CMySQLHandler::Query(UPDATE vehicules SET `Proprio`='Idriss_Collins' WHERE id=0) - Successfully executed
[
23:19:36CMySQLHandler::EscapeString(Idriss_Collins); - Escaped 14 characters to Idriss_Collins
Then it works UPDATE second and third (It's like that, the second works but not the third):

PHP код:
[23:19:38CMySQLHandler::EscapeString(Aucun); - Escaped 5 characters to Aucun
[
23:19:38] >> mysql_queryConnection handle
[
23:19:38CMySQLHandler::Query(UPDATE vehicules SET `Proprio`='Aucun' WHERE id=1
Here is my code in my callback update:

PHP код:
new RequeteProprioveh[MAX_PLAYER_NAME*4]; 
mysql_real_escape_string(Vehicule_infos[id][v_Proprio], Proprioveh); 
format(Requetesizeof(Requete), "UPDATE vehicules SET `Proprio`='%s' WHERE id=%d"
Proprioveh
id); 
However, in my callback add vehicle I have this line and "No" must come from there but ...

PHP код:
memcpy(Vehicule_infos[newId][v_Proprio], "Aucun"0MAX_PLAYER_NAME*4MAX_PLAYER_NAME*4); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)