SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 09/09/2013, 07:33 PM   #1
Day_Jons
Big Clucker
 
Join Date: Apr 2012
Location: Belarus
Posts: 75
Reputation: 1
Question Помогите с MySQL (BlueG)

Не могу разобратся как загрузить string c базы

Code:
House[home][hPosx] = cache_get_field_content_float(0,"posx");
House[home][hPosy] = cache_get_field_content_float(0,"posy");
House[home][hPosz] = cache_get_field_content_float(0,"posz");
House[home][hCarx] = cache_get_field_content_float(0,"carx");
House[home][hCary] = cache_get_field_content_float(0,"cary");
House[home][hCarz] = cache_get_field_content_float(0,"carz");
House[home][hCara] = cache_get_field_content_float(0,"cara");
House[home][hID] = cache_get_field_content_int(0,"id");
House[home][hOwned] = cache_get_field_content_int(0,"owned");
House[home][hInt] = cache_get_field_content_int(0,"int");
House[home][hCena] = cache_get_field_content_int(0,"cena");
House[home][hOpen] = cache_get_field_content_int(0,"open");
House[home][hKlas] = cache_get_field_content_int(0,"klas");
House[home][hUslugi] = cache_get_field_content_int(0,"uslugi");
cache_get_field_name(0, "owner", House[home][hOwner]);
Получаю всю инфу кроме "owner"

Помогите
Day_Jons is offline   Reply With Quote
Old 09/09/2013, 07:36 PM   #2
Alexander_Petrov
Gangsta
 
Join Date: Oct 2011
Location: Russia
Posts: 835
Reputation: 22
Default Re: Помогите с MySQL (BlueG)

cache_get_field_content(0, "owner", House[home][hOwner]);
Alexander_Petrov is offline   Reply With Quote
Old 09/09/2013, 07:45 PM   #3
Day_Jons
Big Clucker
 
Join Date: Apr 2012
Location: Belarus
Posts: 75
Reputation: 1
Default Re: Помогите с MySQL (BlueG)

Quote:
Originally Posted by Alexander_Petrov View Post
cache_get_field_content(0, "owner", House[home][hOwner]);
Не грузит, лог пустой
Day_Jons is offline   Reply With Quote
Old 09/09/2013, 07:48 PM   #4
Stepashka
Godfather
 
Stepashka's Avatar
 
Join Date: Jul 2008
Location: near PC
Posts: 5,463
Reputation: 131
Default Re: Помогите с MySQL (BlueG)

Попробуй так:
pawn Code:
cache_get_field_content(0, "owner", House[home][hOwner], 1, MAX_PLAYER_NAME);
__________________
Клятва Страуструпа: "Я обязуюсь прилежно комментировать свой код, не использовать goto и следить за состоянием своих потоков и выделяемой памяти. Я обязуюсь не оставлять мусора в системе и избегать однобуквенных переменных. Ресет." © Куч
M&M GM
Status: ON HOLD

Stepashka is offline   Reply With Quote
Old 09/09/2013, 07:52 PM   #5
Day_Jons
Big Clucker
 
Join Date: Apr 2012
Location: Belarus
Posts: 75
Reputation: 1
Default Re: Помогите с MySQL (BlueG)

Quote:
Originally Posted by Alexander_Petrov View Post
cache_get_field_content(0, "owner", House[home][hOwner]);
Quote:
Originally Posted by Stepashka View Post
Попробуй так:
pawn Code:
cache_get_field_content(0, "owner", House[home][hOwner], 1, MAX_PLAYER_NAME);
Спасибо, все четко, степашка как всегда меня выручил))
Day_Jons 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
[GameMode] MySQL CLEAN GAMEMODE [Whirlpool, MySQL BlueG R7, Cache, Ready Package (Windows)] GiamPy. Gamemode Scripts 13 13/09/2013 04:31 PM
BlueG MySQL plugin - Failed (plugins/mysql.so: undefined symbol: _Z13stringvprintfPKcPc) linuxthefish Plugin Development 10 13/07/2013 10:56 AM
Strikens Mysql vs BlueG's Mysql plugin PrawkC Scripting Help 4 30/09/2011 10:30 AM


All times are GMT. The time now is 03:04 AM.


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