SA-MP Forums Archive
Little Problem With Playerid - 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: Little Problem With Playerid (/showthread.php?tid=602741)



Little Problem With Playerid - LovelySoomro - 12.03.2016

PHP код:
    new string[600];
    new 
hms;
    if(
_:clickedid != INVALID_TEXT_DRAW)
    {
        if(
clickedid == statsp2[playerid])
        {
        
TotalGameTime(playeridhms);
        
format(stringsizeof(string),"%s%s,stats\nKills: %d\nDeaths: %d\nRatio: %0.2f\nMoney: $%d\nhrs: %d mins: %d\nCashBags: %d\nReaction Test: %d\nExport: %d\nRupees: %d\nquiz: %d\nLottries: %d\nRaces: %d\nMinigun Cards: %d",string,pName(playerid),AccInfo[playerid][Kills],AccInfo[playerid][Deaths],Float:AccInfo[playerid][Kills]/Float:AccInfo[playerid][Deaths],GetPlayerMoney(playerid),h,m,AccInfo[playerid][moneybags],AccInfo[playerid][reaction],AccInfo[playerid][export],AccInfo[playerid][rupees],AccInfo[playerid][quiz],
        
AccInfo[playerid][lottos],AccInfo[playerid][races],AccInfo[playerid][miniguncard]);
        
ShowPlayerDialog(playerid,cmds1,DIALOG_STYLE_MSGBOX,"{0080C0}________{80FF80}Player_Stats{0080C0}________",string,"Okay","");
        }
        else if(
clickedid == statsp3[playerid])
        {
        
format(stringsizeof(string),"%s,stats\nVip_Level: %d\nAdmin_Level: %d\nScore: %d\nWanted: %d",pName(playerid),AccInfo[playerid][pVip],AccInfo[playerid][Level],GetPlayerScore(playerid),GetPlayerWantedLevel(playerid));
        
ShowPlayerDialog(playerid,cmds1,DIALOG_STYLE_MSGBOX,"{0080C0}________{80FF80}Player_Stats{0080C0}________",string,"Okay","");
        }
        else if(
clickedid == statsp4[playerid])
        {
        
format(stringsizeof(string),"%s,stats\nTdm rounds Won: %d\nTdm rounds lost: %d",pName(playerid),AccInfo[playerid][tdmwon],AccInfo[playerid][tdmlost]);
        
ShowPlayerDialog(playerid,cmds1,DIALOG_STYLE_MSGBOX,"{0080C0}________{80FF80}Player_Stats{0080C0}________",string,"Okay","");
        }
        
TextDrawHideForPlayer(playeridstatsp[playerid]);
        
TextDrawHideForPlayer(playeridstatsp1[playerid]);
        
TextDrawHideForPlayer(playeridstatsp2[playerid]);
        
TextDrawHideForPlayer(playeridstatsp3[playerid]);
        
TextDrawHideForPlayer(playeridstatsp4[playerid]);
        
TextDrawHideForPlayer(playeridstatsp5[playerid]);
        
TextDrawHideForPlayer(playeridstatsp6[playerid]);
        
TextDrawHideForPlayer(playeridstatsp7[playerid]);
        
TextDrawHideForPlayer(playeridstatsp8[playerid]);
        
TextDrawHideForPlayer(playeridstatsp9[playerid]);
        
TextDrawHideForPlayer(playeridstatsp10[playerid]);
        
TextDrawHideForPlayer(playeridstatsp11[playerid]);
        
TextDrawHideForPlayer(playeridstatsp12[playerid]);
        
TextDrawHideForPlayer(playeridstatsp13[playerid]);
        
TextDrawHideForPlayer(playeridstatsp14[playerid]);
        
TextDrawHideForPlayer(playeridstatsp15[playerid]);
        
TextDrawHideForPlayer(playeridstatsp16[playerid]);
        
TextDrawHideForPlayer(playeridstatsp17[playerid]);
        
TextDrawHideForPlayer(playeridstatsp18[playerid]);
        
TextDrawHideForPlayer(playeridstatsp19[playerid]);
        
TextDrawHideForPlayer(playeridstatsp20[playerid]);
        
TextDrawHideForPlayer(playeridstatsp21[playerid]);
        
TextDrawHideForPlayer(playeridstatsp22[playerid]);
        
CancelSelectTextDraw(playerid);
    } 
why other peoples stats not show only id 0 show for every one plz help


Re: Little Problem With Playerid - MicroKyrr - 12.03.2016

use [ php ] [ /php ] instead of [ quote] [ /quote ]


Re: Little Problem With Playerid - saffierr - 12.03.2016

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
use [ php ] [ /php ] instead of [ quote] [ /quote ]
True, it's very hard to read it like this.


Re: Little Problem With Playerid - LovelySoomro - 12.03.2016

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
use [ php ] [ /php ] instead of [ quote] [ /quote ]
i already do [ quote] [ /quote ]


Re: Little Problem With Playerid - UltraScripter - 12.03.2016

Use playertext


Re: Little Problem With Playerid - LovelySoomro - 12.03.2016

any way if some one know how to fix this plz help me other wise dont tell me do [quot][/quot] bc i already do this