//Create a data object
GSRequestData scriptData;
//Add a string variable with the key 'email'
scriptData.AddString("email", "example@gamesparks.com");
//Create a registration request
GameSparks::Api::Requests::RegistrationRequest request(gsInstance);
request.SetPassword("abcdefgh");
request.SetUserName("abcdefgh");
request.SetDisplayName("abcdefgh");
//Insert the object as the scriptData
request.SetScriptData(scriptData);
// send the request
request.Send(RegistrationRequest_Response);
pedro alves
how i convert this code {
"@class": ".RegistrationRequest",
"displayName": "fdg",
"password": "fdsg",
"segments": {},
"userName": "fdsfg",
"scriptData": {
"email": "dsds@iol.pt",
"level": "4"
}
}
to c++
sorry i find the soluction
i forget to include the librarys
- Oldest First
- Popular
- Newest First
Sorted by Popularpedro alves
i can´t put scriptdata work
Tech Support
Hello Pedro,
Refer to this:
More on C++ functions, requests, responses and data types here: https://docs.gamesparks.com/tutorials/game-engine-integrations/cpp-quick-start.html
Cheers,
Omar
pedro alves
my bad
pedro alves
sorry i find the soluction
i forget to include the librarys
Customer Support
Hi Pedro,
Each request page in the documentation contains an example for each SDK. For the C++ version of this event you can look here.
Regards,
Liam
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics