09.07.2011, 18:14
Fixed it:
No errors.
pawn Code:
if(dialogid == 8)
{
if(response)
{
if(strlen(inputtext))
{
if((strcmp(inputtext, "Male", true) == 0) || (strcmp(inputtext, "male", true) == 0))
{
SendClientMessage(playerid, COLOR_GREEN, "So you are a Male.");
gPlayerInfo[playerid][pSex] = 1;
}
else if((strcmp(inputtext, "Female", true) == 0) || (strcmp(inputtext, "female", true) == 0))
{
SendClientMessage(playerid, COLOR_GREEN, "So you are a Female.");
gPlayerInfo[playerid][pSex] = 2;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You need to choose between Male or Female!");
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Sex", "What gender are you?\n\nMale / Female", "Ok", "Cancel");
}
}
else
{
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Sex", "What gender are you?\n\nMale / Female", "Ok", "Cancel");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You need to fill in what your gender is!");
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Sex", "What gender are you?\n\nMale / Female", "Ok", "Cancel");
}
}