Hi
This is my url : game.com/game
I want on load game, 'user' and 'name' variable save to construct and show to user
Simple :
Hi 'Ali', your user ID is 103
How can ?
Thank you
https://www.scirra.com/manual/110/browser
QueryParam
How use queryparam ?
I dont undetstand
Return a query string parameter by name. For example, if the URL ends with index.html?foo=bar&baz=wan, QueryParam("foo") returns bar and QueryParam("baz") returns wan.
Ok thank you
But i dont how use it
Add new event ? in event sheet ?
http://www.blackhornettechnologies.com/Construct2Stuff/A2D_QueryParam244.capx
Run, then edit the URL to add:
/?user=103&name=ali
This is for 246 version
Can you send me 244 version ?
I've updated the link.
Develop games in your browser. Powerful, performant & highly capable.
Dear blackhornet, Thank you very much
I want add to variable
This image is correct ? s8.picofile.com/file/8306806792/var.JPG
No, the initial value can only be a constant. Add an action in On Start of layout, and use System.Set value to set it.
This ? s9.picofile.com/file/8306809818/za.JPG
Yes, no semicolon.
Thank you Thank you Thank you
Sorry, query param return INT value
My value is : a65mo33
But return 6533
No, it returns a string:
http://www.blackhornettechnologies.com/Construct2Stuff/A2D_QueryParam244b.capx