How to start scripting roleplay server ?
#8

Alright here I dont understand :
I want to create a Quiz where a newbie register and then their will brought to this QUIZ using DIALOG_STYLE_LIST - maybe my code is wrong - this is my code:

This OnPlayerSpawn
Quote:

{
ShowPlayerDialog(playerid, 3, Dialog_STYLE_LIST, "What is OOC ?", "Out Of Characther \nOil Or Chill \nOut Of Community", "Proceed", "Quit");
return 1;
}

I add this OnDialogResponse (why case 3: ? because I already have dialog id 1 and 2(register/login))
Quote:

else
{
switch(dialogid)
{
case 3:
if(!response)
{
SendClientMessage(playerid, BLUE, "You select LEAVE, you have been kick automaticly!");
Kick(playerid);
return 1;
}
switch(listitem)
{
case 0:
{
if(!reponse)
SendClientMessage(playerid, Yellow, "Correct!");
}
else if(!respone)
{
case 1:
{
SendClientMessage(playerid, RED, "Wrong!");
Kick(playerid):
}
else if(!response)
{
case 2:
{
SendClientMessage(playerid, RED, "Wrong!");
Kick(playerid):
}
}
}
return 1;
}

I know Im suck
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)