Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Multi Array Errors!

Author
Message
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 20th Feb 2008 19:28
What have I do wrong? I get only a lot of errors when I try to run this:

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 20th Feb 2008 19:44 Edited at: 20th Feb 2008 19:45
1. You have code outside of a function. This isn't allowed.
2. You're trying to call a function without first specifying its prototype. You can fix this by either placing that function above the other, or by specifying a prototype above the other function:



3. You're passing a float to dbPrint, I'm not sure if this is allowed. If this is the case, keep a buffer handy to output data to, and pass this to dbPrint:



jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 20th Feb 2008 21:29
I'd take that buffer bit even further - if you can - I personally made a 1k buffer like that - and I put it in a NAMESPACE so I can access it from anywhere in my program. Makes for a quick-n-dirty text buffer for EXACTLY the kind of thing Benjamin showed ya.

CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 21st Feb 2008 18:18
dbStr() can convert float to string, I know it.

And how I do if I whant a global array, but I can't use code outside a function?

Login to post a reply

Server time is: 2024-11-17 06:20:21
Your offset time is: 2024-11-17 06:20:21