|
You last visited: Today at 03:48
Advertisement
Select Values from Database C++
Discussion on Select Values from Database C++ within the SRO Coding Corner forum part of the Silkroad Online category.
08/08/2018, 14:52
|
#1
|
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
|
Select Values from Database C++
I'm use
Link Src :
Code:
namecolors::SetPrefix(L"Name1", 0xFF25DD25);
namecolors::SetPrefix(L"Name2", 0xFFFF0088);
namecolors::SetPrefix(L"Name3", 0xFF0055FF);
namecolors::SetPrefix(L"Name4", 0xFF66FF66);
namecolors::SetPrefix(L"Name5", 0xFF00CC00);
I want it to change the colors color does not based on physical name, which
select from the database through the filter package
I'm not good at C ++, please give me help, please suggest
Thanks
|
|
|
08/08/2018, 20:47
|
#2
|
elite*gold: 100
Join Date: Sep 2017
Posts: 1,109
Received Thanks: 903
|
You cannot do that for sure, you have to use packets afaik. (Or maybe you can but that will enable the SQL injection.)
Also, do not ask for a full-code for a thing. You don't even try.
|
|
|
08/08/2018, 21:53
|
#3
|
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
|
I don't even understand what he is trying to do
|
|
|
08/09/2018, 05:31
|
#4
|
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
|
i trying use this Src to change character name.
Quote:
Originally Posted by #HB
You cannot do that for sure, you have to use packets afaik. (Or maybe you can but that will enable the SQL injection.)
Also, do not ask for a full-code for a thing. You don't even try.
|
yes., i know use Packet , but i can do it because i not good c++
|
|
|
08/09/2018, 15:10
|
#5
|
elite*gold: 100
Join Date: Sep 2017
Posts: 1,109
Received Thanks: 903
|
Quote:
Originally Posted by concucu
i not good c++
|
Did read what I've written above?
Quote:
Originally Posted by qqdev
I don't even understand what he is trying to do 
|
You better not actually.
|
|
|
08/09/2018, 15:33
|
#6
|
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
|
Tiếng anh không phải ngôn ngữ mẹ đẻ của tôi ok
Tôi đă thử rất nhiều nhưng nó quá khó. C̣n bạn không giúp được cũng không cần cmt đâu. Tôi ước ǵ mă nguồn nó là c# th́ cũng không cần lập topic này.
English is not the native language ok
I tried a lot but it was too hard. If you do not help, then you should not comment. I wish the source code was c #, then I do not need to set up this topic.
|
|
|
08/10/2018, 01:47
|
#7
|
elite*gold: 100
Join Date: Sep 2017
Posts: 1,109
Received Thanks: 903
|
This section isn't made for copypasters. I am not sure if there's someone that will give you a full-code to copy.
Learn or burn.
|
|
|
08/10/2018, 10:51
|
#8
|
elite*gold: 0
Join Date: Jul 2017
Posts: 118
Received Thanks: 65
|
Using the filter to read the data from the database and send it to the client through the packet. Then dll read information from packet and do all the things you want
Hint for you: using Sro++ library, you can handle the swap packet between filter and client via dll.
|
|
|
08/12/2018, 19:05
|
#9
|
elite*gold: 135
Join Date: May 2015
Posts: 647
Received Thanks: 752
|
first of all , it cannot be done via C# (C# cannot create dynamic dll files like C++)
You have to use Packets instead of sql connection (To Avoid sql injections) , inject a custom packet to work with a filter then customize the db with the filter (like HWID limit)
it also can be done via php , make a connection between a php and sql then read the data of php from your dll
|
|
|
08/13/2018, 22:55
|
#10
|
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
|
Quote:
Originally Posted by $WeGs
first of all , it cannot be done via C# (C# cannot create dynamic dll files like C++)
|
by far the stupidest statement i've ever seen in this section.
but true use a webserver
|
|
|
08/14/2018, 04:09
|
#11
|
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
|
hmm.
|
|
|
08/14/2018, 05:58
|
#12
|
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
|
Quote:
Originally Posted by concucu
hmm.
|
use curl or boost.
if you need help i can write you a PHP script to retrieve data from your database and help you parse/split results in C++
|
|
|
08/14/2018, 10:21
|
#13
|
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
|
Quote:
Originally Posted by B1Q
use curl or boost.
if you need help i can write you a PHP script to retrieve data from your database and help you parse/split results in C++
|
yes please. I contacted you at discord
|
|
|
08/14/2018, 15:10
|
#14
|
elite*gold: 135
Join Date: May 2015
Posts: 647
Received Thanks: 752
|
Quote:
Originally Posted by B1Q
by far the stupidest statement i've ever seen in this section.
but true use a webserver
|
i'm trying to let him understand how things works
|
|
|
08/14/2018, 16:54
|
#15
|
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
|
Quote:
Originally Posted by $WeGs
i'm trying to let him understand how things works
|
ok my bad
|
|
|
 |
Similar Threads
|
how to store SELECT values from DB in Variable
06/20/2018 - Metin2 Private Server - 0 Replies
hi
i hope to find help here
am facing a problem with retrieving some data from my DB with SELECT query
am doing a Quest that needs to check Pet level before updating its parameters
the new_petsystem table in DB looks like
|
Metin 2 Select Character select error
02/26/2011 - Metin2 Private Server - 1 Replies
Dabei-ist das spiel Charakter-Auswahl Error help
Log Files
0225 23:37:16227 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error
0225 23:37:16227 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error
0225 23:37:16227 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage2.mse) Error
0225 23:37:16227 ::...
|
How can we edit values or memory values?
12/18/2006 - Eudemons Online - 15 Replies
How can we edit values or memory values? I don't know how to do it....help
|
All times are GMT +1. The time now is 03:48.
|
|