Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Help... #160731
10/12/07 23:42
10/12/07 23:42
Joined: Feb 2005
Posts: 16
Italy
C
Cecia Offline OP
Newbie
Cecia  Offline OP
Newbie
C

Joined: Feb 2005
Posts: 16
Italy
Can you tell me how i can create a string of sys_date in format (dd/mm/yyyy).
I needed it to save in a field in MySQL.

T's

Re: Help... [Re: Cecia] #160732
10/13/07 17:31
10/13/07 17:31
Joined: Jan 2007
Posts: 221
F
Fenriswolf Offline
Member
Fenriswolf  Offline
Member
F

Joined: Jan 2007
Posts: 221
Hi,

you can use the predefined variables sys_day etc. and combine them by converting their values into string format (str_for_num) and using other str_ commands like str_cat.

Re: Help... [Re: Fenriswolf] #160733
10/13/07 18:32
10/13/07 18:32
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Here the Code Snippet (Works)

Code:

string date_day_str;
string date_month_str;
string date_year_str;
string dot_str=".";
string double_dot_str=":";


function highscore
{
mySQL_Connectdb("candyman3d","db4free.net","candyman3d","candyman3d");
if(!mySQL_IsConnected())
{
beep; Error("Verbindung konnte nicht hergestellt werden");
exit; // Connection failed, exit to windows.
}
str_for_num(date_day_str,sys_day);
str_cat(date_day_str,dot_str);
str_for_num(date_month_str,sys_month);
str_cat(date_month_str,dot_str);
str_for_num(date_year_str,sys_year);
str_cat(date_day_str,date_month_str);
str_cat(date_day_str,date_year_str);




cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: Help... [Re: rvL_eXile] #160734
10/17/07 01:35
10/17/07 01:35
Joined: Feb 2005
Posts: 16
Italy
C
Cecia Offline OP
Newbie
Cecia  Offline OP
Newbie
C

Joined: Feb 2005
Posts: 16
Italy
thank's


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1