[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) print via interrupt - Pete's QBASIC Site
SUB printf (fmt AS STRING)
temp$ = ""
FOR i% = 1 TO LEN(fmt)
IF MID$(fmt, i%, 2) = "/n" THEN
temp$ = temp$ + CHR$(10) + CHR$(13)
END IF
temp$ = temp$ + MID$(fmt, i%, 1)
NEXT i%
FOR i% = 1 TO LEN(fmt)
char = ASC(MID$(temp$, i%, 1))
RegsX.AX = &HE00 + char
RegsX.BX = 1
InterruptX &H10, RegsX, RegsX
NEXT i%
END SUB
I use this because I don't want to use the standard PRINT and for obvious reasons I'm want it to resemble the C-function. Besides that it has to run in SCREEN 0 but I can't get it anyway to use colors. Does anyone know how to achieve this?