Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 16,302 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
strange problems #258565
03/31/09 16:19
03/31/09 16:19
Joined: Mar 2009
Posts: 16
Srbija
Grupa_Software Offline OP
Newbie
Grupa_Software  Offline OP
Newbie

Joined: Mar 2009
Posts: 16
Srbija
my code looks like this:
Code:
#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 Offline
Serious User
croman  Offline
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 Offline OP
Newbie
Grupa_Software  Offline 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 Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
Code:
#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 Offline OP
Newbie
Grupa_Software  Offline 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 Offline
Serious User
croman  Offline
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 Offline OP
Newbie
Grupa_Software  Offline 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 Offline
Serious User
croman  Offline
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

M
Malice
Unregistered
Malice
Unregistered
M



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


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1