24.10.2010, 14:50
(
Последний раз редактировалось HyperZ; 24.10.2010 в 15:01.
)
Try this:
pawn Код:
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Gender","You're Male or Female?","Male","Female");
//OnDialogResponse
if (dialogid == 3)
{
if(response == 0)
{
SendClientMessage(playerid,FARBE_GELB2, "you are male!");
dini_IntSet(accFormat,"sex",Player[playerid][sex]=0);
SpawnPlayer(playerid);
}
if(response)
{
SendClientMessage(playerid,FARBE_GELB2, "you are female!");
dini_IntSet(accFormat,"Sex",Player[playerid][Sex]=1);
SpawnPlayer(playerid);
}
return 1;
}