/stats command.
#3

why using new again and again? why not once?
pawn Код:
YCMD:stats(playerid,params[])
{
    if(IsPlayerConnected(playerid))
    {
        new password = PlayerInfo[playerid][Password],
        admin = PlayerInfo[playerid][Admin],
        Origin = PlayerInfo[playerid][Origin],
        Skin = PlayerInfo[playerid][Skin],
        Developer = PlayerInfo[playerid][Developer],
        Money = PlayerInfo[playerid][Money],
        Age = PlayerInfo[playerid][Age],
        Gender = PlayerInfo[playerid][Gender],
        string[500];
        format(string,sizeof(string),"Password: %s | Admin: %d | Origin: %d | Skin: %d | Developer: %d | Money: %d | Age: %d | Gender: %d",password,Admin,Origin,Skin,Developer,Money,Age,Gender);
        SendClientMessage(playerid,COLOR_WHITE,string);
    }
    return 1;
}
is there any problem with this?
Reply


Messages In This Thread
/stats command. - by Dare Devil..... - 19.07.2012, 16:44
Re: /stats command. - by newbienoob - 19.07.2012, 16:46
Re: /stats command. - by Jarnu - 19.07.2012, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)