- 0
Problema dialog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
compaq
Ma bat cu o problema al dracului de enervanta la un dialog. Am incercat sa fac un fel de formular de inregistrare - sex, ani etc.
Dialogul arata cam asa (creat in SetPlayerSpawn):
[pawn]ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,"Intrebarea nr.1","Esti de sex masculin sau feminin? \n(Alege de mai jos Masculin sau Feminin)","Masculin","Feminin");[/pawn]
Continuarea in OnDialogResponse:
[pawn] if(dialogid == 4)
{
if(response)//daca apasa primul buton
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Intrebarea nr. 2", "Te rog scrie cati ani ai:", "Ok", "Cancel");
SendClientMessage(playerid, COLOR_YELLOW,"Bine. Deci ai ales sexul Masculin.");
SendClientMessage(playerid, COLOR_ROSUAPRINS,"Intrebarea numarul 2 te rog scrie cati ani ai");
PlayerInfo[playerid][pSex] = 1;
RegistrationStep[playerid] = 2;
}
else
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Intrebarea nr. 2", "Te rog scrie cati ani ai:", "Ok", "Cancel");
SendClientMessage(playerid, COLOR_YELLOW,"Bine.Deci ai ales sexul Feminin.");
SendClientMessage(playerid, COLOR_ROSUAPRINS,"Intrebarea numarul 2 te rog scrie cati ani ai");
PlayerInfo[playerid][pSex] = 2;
RegistrationStep[playerid] = 2;
}
return 0;
}[/pawn]
Daca apas in-game pe Feminin, imi spune in chat *Dialog has been hidden.
What should I do?
15 answers to this question
Recommended Posts