Examples:
This works:
PHP Code:
new szString[ 46 ]
new szName[ 32 ]
get_user_name( id, szname, 31 )
formatex( szString, 45, "<b>Your name is: %s</b>", szName )
write_file( "file.html", szString, -1 )
But not this.
PHP Code:
szString[ 32 ]
new randomnum = random_num( 1,100 )
formatex( szString, 31, "<b>The random number is: %s</b>", randomnum )
write_file( "file.html", szString, -1 )
Why? All i get is "The random number is:" and nothing after it as the output in the html file .. Some of the times when i tried writing integers to the html file i just got weird outputs like "© ₳" where the integer is supposed to be.. And it's the same if i write any integer into the file. It just doesn't work. Only strings. I am currently making a Chatlog, and i have to check the time of when it was logged, and send that time to the html file.. Everything is working file, but when it's going into the html file is where everything goes wrong.
__________________