Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 623 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Script error #167588
11/15/07 14:50
11/15/07 14:50
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
ROTATE(ME,force_turn,nullvector)

bad or missing parameter unknown function

why does this happend?
thanks

Re: Script error [Re: Mythran] #167589
11/15/07 14:58
11/15/07 14:58
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
because the function ROTATE does not exist. Use c_rotate instead, and replace nullvector by NULL.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Script error [Re: Joozey] #167590
11/15/07 20:06
11/15/07 20:06
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Thanks a lot

(): syntax error - nonexistent/empty function remove

the function main is in the script when i do the debug in the script editor it sais there is no function main. but the function is there, is this the cause of the error?
How can this be fixed?
Thanks in advance.

Re: Script error [Re: Mythran] #167591
11/15/07 20:21
11/15/07 20:21
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
dont know sure but u need this

function main()//dont forget ()
{
//dont know
}


"empty"
Re: Script error [Re: flits] #167592
11/15/07 20:30
11/15/07 20:30
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
FUNCTION main()
{

randomize(); // set random seed
level_load (level_str);
wait (2); // wait for the level to be loaded
clip_size = 0; // show all the triangles for all the models

//Loco03
// if not a single player game, wait for connection
ifdef server;
while(connection== 0) {wait(1);} // wait until level loaded and connection set
endif;
ifdef client;
while(connection== 0) {wait(1);} // wait until level loaded and connection set
endif;

//Loco03
if(connection == 2) // client
{
while (temp_player_number == 0) // wait for server to assign client player number
{
wait(1);
}
}

CalculateFPS();
init_chat();
InitDebug(); //Loco02
Debug(); //Loco02

sleep(.5); //Loco03

//Loco03
// if dedicated server skip these
if(connection != 1)
{
camera.visible = on; // turn camera on
create_player(); // create player
input_scan(); // get inputs
move_camera(); // simple 3rd Person chase camera code
spells();
}
while(1)
{
// if server quit, exit game on all clients too
if((game_quit == TRUE) && (connection == 2))
{
exit;
}

// on display player# if host(server/client) or client
if(connection == 2 || connection == 3)
{
// continuely show player number, player number can be changed if other
// players quit as written now
str_cpy(strPlayerNumber, "Player#:");
str_for_num(strTemp, player_number);
str_cat(strPlayerNumber, strTemp);
txtPlayerNumber.visible = ON;
}
wait(1);
}
}

Re: Script error [Re: Mythran] #167593
11/15/07 20:48
11/15/07 20:48
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
What precisely is the error?
And I don't thing "Player#:" is a good idea, it might be misinterpreted as # is used for other purposes as well. Try without it first untill you have it all working.

Also:
Quote:


(): syntax error - nonexistent/empty function remove





You have a function called remove somewhere, rename it to ent_remove. remove doesn't exist anymore.


Click and join the 3dgs irc community!
Room: #3dgs

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

Gamestudio download | chip programmers | 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