Fetching a data from mySQL
#3

First you need to learn SQL select syntax.
Its: select `field1`, `field2` or * from `table` where `smth` = 'value'

Ex: select `skin` from `players` where `id` = '%d'
And then will need to use mysql_query or tquery
And story the cache Id or go to tquery finish callback
And then use
https://sampwiki.blast.hk/wiki/MySQL/R40...value_name_int

To get skin value.

Sorry for a bit shit explain I'm on phone.
Reply


Messages In This Thread
Fetching a data from mySQL - by Fratello - 27.09.2017, 14:37
Re: Fetching a data from mySQL - by AndreiWow - 27.09.2017, 14:48
Re: Fetching a data from mySQL - by jlalt - 27.09.2017, 14:50
Re: Fetching a data from mySQL - by Fratello - 27.09.2017, 14:56
Re: Fetching a data from mySQL - by jlalt - 27.09.2017, 15:00
Re: Fetching a data from mySQL - by raydx - 27.09.2017, 15:05
Re: Fetching a data from mySQL - by whadez - 27.09.2017, 15:21
Re: Fetching a data from mySQL - by Fratello - 27.09.2017, 16:24
Re: Fetching a data from mySQL - by oMa37 - 27.09.2017, 16:28
Re: Fetching a data from mySQL - by Fratello - 27.09.2017, 16:32

Forum Jump:


Users browsing this thread: 2 Guest(s)