SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/11/2013, 02:56 PM   #1
cuemur
Big Clucker
 
cuemur's Avatar
 
Join Date: Apr 2013
Posts: 68
Reputation: 1
Default How will answear will get 2 bucks.

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 Code:
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)); 
cuemur is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mod problem im paying 10$ for a answear Vrag Server Support 4 08/08/2013 01:27 PM


All times are GMT. The time now is 07:31 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.