Stats help
#2

pawn Код:
CMD:stats(playerid, params[])
{
    new str[128],fightstyle[40];
    switch(pInfo[playerid][Style])
    {
        case 4: format(fightstyle, sizeof(fightstyle), "Normal");
        case 5: format(fightstyle, sizeof(fightstyle), "Boxing");
        case 6: format(fightstyle, sizeof(fightstyle), "Kungfu");
        case 7: format(fightstyle, sizeof(fightstyle), "Kneehead");
        case 15: format(fightstyle, sizeof(fightstyle), "Grabkick");
        case 16: format(fightstyle, sizeof(fightstyle), "Elbow");
    }
    format(str,sizeof(str),"Cash: %i - Cigars: %i - Fightstyle: %s",pInfo[playerid][Cash],pInfo[playerid][Cigar],fightstyle);
    ShowPlayerDialog(playerid,13,0,"Stats",str,"Close","");
    return 1;
}
Reply


Messages In This Thread
Stats help - by Noles2197 - 03.02.2013, 18:06
Re: Stats help - by SKAzini - 03.02.2013, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)