Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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