Garage owner not saving - 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: Garage owner not saving (
/showthread.php?tid=479314)
Garage owner not saving -
nicolaskettler - 04.12.2013
SOLVED
Re : Garage owner not saving -
nicolaskettler - 04.12.2013
Up please
I really can't understand why garage owner is not saving
Re: Garage owner not saving -
Scrillex - 04.12.2013
It isn't changing because you are reading it wrongly.
show enum of garage..
Re : Garage owner not saving -
nicolaskettler - 04.12.2013
No no i solved it,
it was a fail from me
Quote:
format(sql, sizeof(sql), "UPDATE `garages` SET `proprio`= '%s' WHERE `id` = %d",GarageInfo[g][gOwner],g);
|
had to be:
Quote:
format(sql, sizeof(sql), "UPDATE `garages` SET `proprio`= '%s' WHERE `id` = %d",GarageInfo[g][gOwner],g+1);
|
it works like charm now