07.10.2015, 20:36
Code from ondialogresponse:
Code from OnPlayerConnect.
When I'd login into my server it does show the dialog.
But if I click "Continue", nothing happens.
If I click "Exit" it does kick me < this is supposed to be.
PHP код:
if(dialogid == 4)
{
if(response)
{
new rstring[1912];
format(rstring, sizeof(rstring), "%s\n\n\t\t\t\tBy clicking the \"I Agree\" button you agree with our rules and regulations.",ServerRules());
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"Server Rules Agreement (1/7)",rstring,"I Agree","I Disagree");
}
else
{
SetTimerEx("DelayedKick", 100, false, "i", playerid);
}
return 1;
}
if(dialogid == 5)
{
if(response)
{
new FirstSet = random(4);
if(FirstSet == 0)ShowPlayerDialog(playerid,6,DIALOG_STYLE_LIST,"1/5 A roleplaying game's main aim is to... (2/7)","...Earn money and level-up.\n...Assume the role of the character you're playing with.\n...Kill each others.","Select","Quit");
else if(FirstSet == 1)ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"1/5 What does IC stand for? (2/7)","Inner Characteristics.\nInside Class.\nIn Character.","Select","Quit");
else if(FirstSet == 2)ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"1/5 IC refers to the world of the... (2/7)","...Players, rather than the world of the characters.\n...Characters, rather than the world of the players.\n...Players and the world of the characters.","Select","Quit");
else if(FirstSet == 3)ShowPlayerDialog(playerid,9,DIALOG_STYLE_LIST,"1/5 What does OOC stand for? (2/7)","Out Of Character.\nOut Of Class\nOut Of Car.","Select","Quit");
}
else
{
SetTimerEx("DelayedKick", 100, false, "i", playerid);
}
}
PHP код:
format(string, sizeof(string),"Welcome to International Roleplay %s!\n\nThe registration process will be as following:\n\nStep 1: Agreement on server rules.\nStep 2: A roleplay test that consists of 5 random questions.\nStep 3: Password selection.\nStep 4: E-mail selection.\nStep 5: Gender selection.\nStep 6: Age selection.\nStep 7: Skin selection.\n\nThanks for playing!\n\nInternational Roleplay Team", GetName(playerid));
ShowPlayerDialog(playerid, 4,DIALOG_STYLE_MSGBOX,"International Roleplay",string,"Continue","Quit");
When I'd login into my server it does show the dialog.
But if I click "Continue", nothing happens.
If I click "Exit" it does kick me < this is supposed to be.