SA-MP Forums Archive
OnPlayerClickPlayer help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerClickPlayer help. (/showthread.php?tid=463114)



OnPlayerClickPlayer help. - tuuler - 10.09.2013

PROBLEM SOLVED !


Re: OnPlayerClickPlayer help. - Dragonsaurus - 10.09.2013

Just this, without "if(playerid == clickedplayerid):
pawn Код:
OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new admin = PlayerInfo[clickedplayerid][pAdmin];
    new kills = PlayerInfo[clickedplayerid][pKills];
    new deaths = PlayerInfo[clickedplayerid][pDeaths];
    new money = GetPlayerMoney(clickedplayerid);
    new level = GetPlayerScore(clickedplayerid);
    new string252[256]; format(string252,sizeof string252,"{9ACD32}S T A T S");
    new string251[256]; format(string251,sizeof string251,"{9ACD32}>> {FFFFFF}Level: {C10B07}%d\n{9ACD32}>> {FFFFFF}Money: {C10B07}%d\n{9ACD32}>> {FFFFFF}Score: {C10B07}%d\n{9ACD32}>> {FFFFFF}Kills: {C10B07}%d\n{9ACD32}>> {FFFFFF}Deaths: {C10B07}%d",admin,money,level,kills,deaths);
    ShowPlayerDialog(playerid,25,DIALOG_STYLE_MSGBOX,string252,string251,"Close", "");
    return 1;
}