Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AemStones, AndrewAMD, gamers, Kingware), 1,590 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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 | 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