Restored from previous forum. Originally posted by BalrogSoft.
Hi...
Its would be a great feature that procedurereturn command supports another type of variables such as floats and strings. In the 3d engine that im programming i must multiply the position of objects and cams for 100000 and after divide by 100000 to get a float value.
Bye, Balrog Soft.
Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
floats, strings for procedurereturn
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
@balrogSoft
I think you declare the procedure wrong.
try this:
@balrogSoft
I think you declare the procedure wrong.
try this:
Code: Select all
procedure.s returnstring()
procedurereturn "hallo"
endprocedure
debug returnstring()
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MBOriginally posted by GPI
@balrogSoft
I think you declare the procedure wrong.
try this:PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MBCode: Select all
procedure.s returnstring() procedurereturn "hallo" endprocedure debug returnstring()
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by BalrogSoft.
Thanks GPI, i will try later...
Thanks GPI, i will try later...
Originally posted by GPI
@balrogSoft
I think you declare the procedure wrong.
try this:Code: Select all
procedure.s returnstring() procedurereturn "hallo" endprocedure debug returnstring() PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB [/quote] Balrog Soft Amiga and PC Coder [url]http://www.balrogsoftware.com[/url] [url]mailto:balrog@balrogsoftware.com[/url]