Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 22:06
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 4,738 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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 | 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