06.06.2013, 20:30
How can i fix the Gender Selection and Age Selection on my Gamemode
I added Age and Gender on the pInfo Enum
I want Male=1 and female = 2
How can i fix this to Make it where it select Male it will be id 1 and female id 2
I dont want the skin to change only the gender in /stats
I added Age and Gender on the pInfo Enum
Код:
ShowPlayerDialog(playerid,DIALOG_REGISTER2,DIALOG_STYLE_MSGBOX,"Select Your Character's Gender","Select the gender for your character","Male","Female");
How can i fix this to Make it where it select Male it will be id 1 and female id 2
I dont want the skin to change only the gender in /stats
Код:
case DIALOG_REGISTER2:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
SendClientMessage(playerid,COL_GREEN,"You have successfully logged in and have been spawned at your previous spot");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","{FF0055}You have entered an incorrect password.\nType your password below to login.","Login","Quit");
}
return 1;
}
}
}
return 1;
}

