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
1 registered members (TipmyPip), 18,484 guests, and 6 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
c-script > lite-c #372783
06/04/11 11:55
06/04/11 11:55
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
Hello!

ok, how write this in lite-c

Code:
if (int(my.skill2)/4 == int(int(my.skill2)/4)){
......
}



Re: c-script > lite-c [Re: LawnmowerMan] #372785
06/04/11 12:17
06/04/11 12:17
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
try to replace int with integer


Visit my site: www.masterq32.de
Re: c-script > lite-c [Re: MasterQ32] #372789
06/04/11 13:00
06/04/11 13:00
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
thnk you richi, this work. Now my next problem. earlier in the c-script, we can define a variable as

var ball_fastspeed = ON or var ball_fastspeed = OFF


now in lite-c this wont work. What is ON and OFF? This is predefined engine variable? How now i can use ON and OFF? I tried to define the variable as 0 and 1, but my code does not work well as before.

Re: c-script > lite-c [Re: LawnmowerMan] #372791
06/04/11 13:08
06/04/11 13:08
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
change
ON to true;
OFF to false
using 0 and 1 shouldn't make any difference, there'd be another problem elsewhere in your code

Re: c-script > lite-c [Re: MrGuest] #372793
06/04/11 13:14
06/04/11 13:14
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
ok thanks i will try!

Re: c-script > lite-c [Re: LawnmowerMan] #372802
06/04/11 14:39
06/04/11 14:39
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
or you can use bool


asking is the best Way to get help laugh laugh laugh
Re: c-script > lite-c [Re: Progger] #372804
06/04/11 14:59
06/04/11 14:59
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
what is bool?


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