12.07.2018, 12:36
Try to re-show the textdraw to the player.
PHP код:
if(dialogid == DIALOG_SEXE)
{
if(response)
{
if(listitem == 0)
{
PlayerInfo[playerid][pSex]=1;SetPlayerSkin(playerid, 26);PlayerInfo[playerid][pChar] = 26;
format(MessageInscri, sizeof(MessageInscri), "Sexe: Homme");
PlayerTextDrawSetString(playerid, Creationperso[playerid][12], MessageInscri);
PlayerTextDrawSetPreviewModel(playerid, Creationperso[playerid][7], 26);
PlayerTextDrawShow(playerid, Creationperso[playerid][7]);
PlayerTextDrawShow(playerid, Creationperso[playerid][12]);
SelectTextDraw(playerid, 0x0080FF);
}
else if(listitem == 1)
{
PlayerInfo[playerid][pSex]=2;SetPlayerSkin(playerid, 29;PlayerInfo[playerid][pChar] = 298;
format(MessageInscri, sizeof(MessageInscri), "Sexe: Femme");
PlayerTextDrawSetString(playerid, Creationperso[playerid][12], MessageInscri);
PlayerTextDrawSetPreviewModel(playerid, Creationperso[playerid][7], 29;
PlayerTextDrawShow(playerid, Creationperso[playerid][7]);
PlayerTextDrawShow(playerid, Creationperso[playerid][12]);
SelectTextDraw(playerid, 0x0080FF);
}
}
}

