Adding Gender to the /stats
#4

Quote:
Originally Posted by Aira
Посмотреть сообщение
pawn Код:
new stext[28];
if(pInfo[playerid][Gender] == 1) { sext = "Male"; } else { sext = "Female"; }
Then replace pInfo[playerid][Gender], on your code to

pawn Код:
sext,
Код:
: error 029: invalid expression, assumed zero
: warning 217: loose indentation
: error 017: undefined symbol "sext"
: warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
: fatal error 107: too many error messages on one line
pawn Код:
public ShowStats(playerid,targetid)
{
    new string[250],pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),""embed_blue"%s "embed_white"stats\n\
                                "
embed_blue"Age:"embed_white"$%s\n\
                                "
embed_blue"Gender:"embed_white"%s\n\
                                "
embed_blue"Money:"embed_white"$%d\n\
                                "
embed_blue"Kills:"embed_white"%d\n\
                                "
embed_blue"Deaths:"embed_white"%d",
                                pName,
                                pInfo[playerid][Age],
                                new sext[28];
                                if(pInfo[playerid][Gender] == 1) { sext = "Male"; } else { sext = "Female"; }
                                pInfo[playerid][pMoney],
                                pInfo[playerid][Kills],
                                pInfo[playerid][Deaths]);

    ShowPlayerDialog(playerid,1234,DIALOG_STYLE_MSGBOX,""embed_white"Stats",string,"Ok","");
    return 1;
}
It didn't work....


Quote:
Originally Posted by Dubya
Посмотреть сообщение
Is Gender 1 Male, and Gender 2 Female?
Yes it is. Btw guys I retired from scripting about 2009, I dabbled back in it back in 2011. The Dialog system is a bit new to me, I am sorry I am learning it as fast as I can.
Reply


Messages In This Thread
Adding Gender to the /stats - by kujox222 - 17.06.2012, 06:05
Re: Adding Gender to the /stats - by Aira - 17.06.2012, 06:12
Re: Adding Gender to the /stats - by Dubya - 17.06.2012, 06:14
Re: Adding Gender to the /stats - by kujox222 - 17.06.2012, 06:16
Re: Adding Gender to the /stats - by Dubya - 17.06.2012, 06:19
Re: Adding Gender to the /stats - by leonardo1434 - 17.06.2012, 06:23
Re: Adding Gender to the /stats - by kujox222 - 17.06.2012, 06:29
Re: Adding Gender to the /stats - by Dubya - 17.06.2012, 06:48
Re: Adding Gender to the /stats - by kujox222 - 17.06.2012, 06:57
Re: Adding Gender to the /stats - by Aira - 17.06.2012, 07:18

Forum Jump:


Users browsing this thread: 2 Guest(s)