weird problem
#1

when i use getstats [id], it shows another player stats
pawn Code:
CMD:getstats(playerid, params[])
{
    if(PlayerData[playerid][AdminLevel] < 1) return 0;
    GetPlayerName(ID,pname,sizeof(pname));
    format(str, sizeof(str), "Name: %s\n\nAdmin Level: %d\n\nVip Level: %d\n\nHours: %d\n\nMinutes: %d\n\nBank Balance: %d",pname,PlayerData[ID][AdminLevel],PlayerData[ID][vip],PlayerData[ID][HoursPlayed],PlayerData[ID][MinutesPlayed],PlayerData[ID][Bank]);
    ShowPlayerDialog(playerid,10001,DIALOG_STYLE_MSGBOX, "Stats",str,"Close","");
    return 1;
}
Reply


Messages In This Thread
weird problem - by Tanush123 - 24.08.2011, 18:38
Re: weird problem - by =WoR=Varth - 24.08.2011, 18:40
Re: weird problem - by grand.Theft.Otto - 24.08.2011, 18:42
Re: weird problem - by =WoR=Varth - 24.08.2011, 18:45
Re: weird problem - by Tanush123 - 24.08.2011, 19:12

Forum Jump:


Users browsing this thread: 3 Guest(s)