|
1 registered members (Dico),
16,767
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
strange problems
#258565
03/31/09 16:19
03/31/09 16:19
|
Joined: Mar 2009
Posts: 16 Srbija
Grupa_Software
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 16
Srbija
|
my code looks like this:
#include <ancknex.h>
#include <default.c>
function main()
{
video_mode=7;
video_screen=1;
wait(1);
}
Wehn I want to test this code sed returns error - video_mode, and video_screen is read only function or some thing like that. I tried to compile demo level - carlevel that comes with game studio it can ran few times that it also returned the same error. How can I fix this?
Expirienced Game Designer
|
|
|
Re: strange problems
[Re: Grupa_Software]
#258567
03/31/09 16:28
03/31/09 16:28
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
#include <ancknex.h> -> WRONG! #include <acknex.h> -> CORRECT!
Ubi bene, ibi Patria.
|
|
|
Re: strange problems
[Re: croman]
#258571
03/31/09 16:32
03/31/09 16:32
|
Joined: Mar 2009
Posts: 16 Srbija
Grupa_Software
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 16
Srbija
|
I wrote the wrongy that line here, but in the code it is written correctly, and it still doesn't work.
Expirienced Game Designer
|
|
|
Re: strange problems
[Re: Grupa_Software]
#258572
03/31/09 16:38
03/31/09 16:38
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
#include <acknex.h>
#include <default.c>
var video_mode = 7;
var video_screen = 1;
function main()
{
wait(1);
}
maybe if you try it this way. can you send me that project folder so i check on my 3dgs if that error occurs to me?
Ubi bene, ibi Patria.
|
|
|
Re: strange problems
[Re: croman]
#258573
03/31/09 16:45
03/31/09 16:45
|
Joined: Mar 2009
Posts: 16 Srbija
Grupa_Software
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 16
Srbija
|
Ok I tried that befor but it didn't work. Now it works in the way it should, but what is the difference between my code and example code? In example code wasn't written:
var video_mode = 7; var video_screen = 1;
???
Expirienced Game Designer
|
|
|
Re: strange problems
[Re: Grupa_Software]
#258574
03/31/09 16:47
03/31/09 16:47
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
nema veze. uploadaj taj svoj folder od tog projekta na rapidshare i daj mi link da vidim jel se meni pojavljuje ista greška kao i tebi bez da išta diram po projektu/kodu
Ubi bene, ibi Patria.
|
|
|
Re: strange problems
[Re: croman]
#258580
03/31/09 17:23
03/31/09 17:23
|
Joined: Mar 2009
Posts: 16 Srbija
Grupa_Software
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 16
Srbija
|
Sta god vise se ne pojavljuje greska, sumnjam da ima neke veza sa opciom 'Save' u tool baru, jer se greska javljala svaki put kada sam koristio tu opciju.
Expirienced Game Designer
|
|
|
Re: strange problems
[Re: Grupa_Software]
#258582
03/31/09 17:24
03/31/09 17:24
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
sed ima dosta cudne bugove. meni ti nekad ne radi kod kad izbrisem komentar //. kad ugasim i upalim sed ponovo onda radi. cudno...
Ubi bene, ibi Patria.
|
|
|
Re: strange problems
[Re: croman]
#258598
03/31/09 19:37
03/31/09 19:37
|
Malice
Unregistered
|
Malice
Unregistered
|
Make Sure that the file your main() function is in is a *.c file type not a *.wdl. That might be your problem.
My 2 cents Malice
|
|
|
|
|
|