27.12.2011, 07:42
Hello friends , wanted to ask you what is wrong.When i register to my server and choose gender = female i get male skin but when i relog i female skin.
My LOADING
SAVING
Gender selection
When player registers
The Gender code
My LOADING
pawn Код:
pInfo[playerid][skinas]=dini_Int(file,"Skinas"); //Skin
pInfo[playerid][lytis]=dini_Int(file,"Lytis"); //Gender
pawn Код:
dini_IntSet(file, "Skinas", GetPlayerSkin(playerid)); //Skin
dini_IntSet(file,"Lytis",pInfo[playerid][lytis]); //Gender
When player registers
pawn Код:
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Lytis","{FFFFFF}Jus esate...?","Vyras","Moteris");
pawn Код:
if(dialogid == 3)
{
if(response)
{
SendClientMessage(playerid,GREEN,"Jus esate vyras."); // You are male
SetPlayerSkin(playerid,188);
pInfo[playerid][lytis]=1; //Gender
pInfo[playerid][skinas]=188; //Skin
}
if(!response)
{
SendClientMessage(playerid,GREEN,"Jus esate moteris."); // You are female
SetPlayerSkin(playerid,93);
pInfo[playerid][lytis]=2; //Gender
pInfo[playerid][skinas]=93; //Skin
return 1;
}