25.04.2014, 06:48
I got a problem in my script. When the player spawn, if the player choose male, the skin that spawned is female skin. Can anyone help me?
Code:
if(RegistrationStep[playerid] != 0)
{
if(dialogid == REGISTERSEX)
{
if(response)
{
new stringdiag[410];
for(new x=18;x<99;x++)
{
format(stringdiag, sizeof(stringdiag), "%s%d\n", stringdiag, x);
}
if(listitem == 0)
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessageEx(playerid, COLOR_LIGHTRED, "Alright, so you're a male.");
ShowPlayerDialog(playerid, REGISTERAGE, DIALOG_STYLE_LIST, "{33CCFF}What is your characters age? - www.usa-rp.cf", stringdiag, "Submit", "");
RegistrationStep[playerid] = 2;
}
else
{
PlayerInfo[playerid][pSex] = 2;
SendClientMessageEx(playerid, COLOR_LIGHTRED, "Alright, so you're a female.");
ShowPlayerDialog(playerid, REGISTERAGE, DIALOG_STYLE_LIST, "{33CCFF}What is your characters age? - www.usa-rp.cf", stringdiag, "Submit", "");
RegistrationStep[playerid] = 2;
}
}
else
{
ShowPlayerDialog(playerid, REGISTERSEX, DIALOG_STYLE_LIST, "{33CCFF}Is your character male or female? - www.usa-rp.cf", "Male\nFemale", "Submit", "");
}
}


