Little Problem With Playerid
#1

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
Reply
#2

use [ php ] [ /php ] instead of [ quote] [ /quote ]
Reply
#3

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

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

Use playertext
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)