SA-MP Forums Archive
How will answear will get 2 bucks. - 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: How will answear will get 2 bucks. (/showthread.php?tid=476803)



How will answear will get 2 bucks. - cuemur - 20.11.2013

I need bolded thingy be set by owner id from datbase, please help how to get ID from database? Im using Mysql 5 plugin
#include <a_mysql>
SetPVarInt(playerid, "PlayerCars", CarInfo[idx][id]);
PHP код:
format(query,sizeof(query),"UPDATE "TABLE_CARS" SET clock = %i, model = %i,cost = %i,colors = '%s', x = '%f', y='%f', z='%f', fa='%f', fuel = %i, heal = '%f' WHERE owner = '%s'",CarInfo[idx][cLock],CarInfo[idx][cModel],
        
CarInfo[idx][cCost],CarInfo[idx][cColors],CarInfo[idx][cX], CarInfo[idx][cY], CarInfo[idx][cZ], CarInfo[idx][cFa], CarInfo[idx][cFuel], CarInfo[idx][cHeal], sendername(playerid));