17.05.2012, 08:38
Hello,
Ok so this is my player enum:
And here is my dialog:
but this is the outcome and it doesn't save the number they pressed! (say they pressed 1.
Ok so this is my player enum:
pawn Код:
enum pInfo
{
pPass,
pCash,
pAdminLevel,
pGender,
pAge,
pSkin,
pNew
}
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
case DIALOG_REG:
{
if(!response) return Kick ( playerid );
new INI:File = INI_Open(UserPath(playerid));
switch( listitem )
{
case 0:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 1:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 2:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 3:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 4:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 5:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 6:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 7:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 8:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 9:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 10:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
case 11:
{
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
}
}
INI_Close(File);
}
}
return 1;
}
pawn Код:
Age = 0
[data]
Password = 256967457
Cash = 0
AdminLevel = 0