Gamestudio Links
Zorro Links
Newest Posts
Z12 live performance
by jcl. 06/19/26 11:21
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, ApprenticeInMuc, 1 invisible), 4,219 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Var passed through functions - cant compare #444736
08/17/14 19:25
08/17/14 19:25
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline OP
Serious User
Stansmedia  Offline OP
Serious User

Joined: Mar 2003
Posts: 1,524
Canada

Code:
var continue_level;

function level_switch(var* numberlvl)
{
	if(numberlvl > continue_level)
	{
		continue_level = numberlvl;
	}
}



Gives me error: Wrong type GT:POINTER:FIXED:LONG if(numberlvl > continue_level)


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en
Re: Var passed through functions - cant compare [Re: Stansmedia] #444740
08/17/14 19:31
08/17/14 19:31
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Originally Posted By: Stansmedia
Gives me error: Wrong type GT:POINTER:FIXED:LONG if(numberlvl > continue_level)
What if you remove * after defining the var?
Code:
function level_switch(var numberlvl){
}

Otherways you are creating a pointer, thats why you are getting a crash (just a quick idea, I need to get some sleep now grin ).

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Var passed through functions - cant compare [Re: 3run] #444741
08/17/14 19:44
08/17/14 19:44
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline OP
Serious User
Stansmedia  Offline OP
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
uggghhhhhhh

thanks! tongue


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en

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