Message Not Showing
#1

PHP код:
new string[256];
        
format(stringsizeof(string), "- Los Santos Life Roleplay %s's Stats -"GetPlayerNameEx(targetid));
        
SendClientMessageEx(playeridCOLOR_GREENstring);
        
format(stringsizeof(string), "Level {008000}[%d] {FFFFFF}- Player Hours {008000}[%d] {FFFFFF}- Gender {008000}[%s] {FFFFFF}- Age {008000}[%d] {FFFFFF}- Phone {008000}[%d] {FFFFFF}- Warnings {008000}[%d]"GetPlayerNameEx(targetid), levelphourssextagepnumberwarns);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        
format(stringsizeof(string), "%s {008000}[%d] {FFFFFF}- Rank {008000}[%s (%d)] {FFFFFF}- Division {008000}[%s] {FFFFFF}- Job {008000}[%s] {FFFFFF}- Side Job {008000}[%s] {FFFFFF}- Warnings {008000}[%d]"facgangemployerrankPlayerInfo[targetid][pRank], divisionjtextjtext2);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        
format(stringsizeof(string), "Total Wealth {008000}[%d] {FFFFFF}- Cash {008000}[%d] {FFFFFF}- Bank Balance {008000}[%d] {FFFFFF}- Insurance {008000}[%s] {FFFFFF}- Married to {008000}[%s] {FFFFFF}- VIP Level {008000}[%s]"totalwealthcashbankinsurmarrieddonatortxt);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        
format(stringsizeof(string), "Crimes {008000}[%d] {FFFFFF}- Arrests {008000}[%d] {FFFFFF}- Wanted Level {008000}[%d] {FFFFFF}- RP Skill {008000}[%d] {FFFFFF}- Referral Tokens {008000}[%d] {FFFFFF}- Tokens {008000}[%d]"crimesarrestswantedrpskillreftokenstokens);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        
format(stringsizeof(string), "Approximate time of next paycheck: {008000}%d {FFFFFF}minutes."floatround((3600-PlayerInfo[targetid][pConnectSeconds]) / 60));
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        
SendClientMessageEx(playeridCOLOR_WHITE"Use {008000}/inventory {FFFFFF}to see your items.");
        if(
PlayerInfo[playerid][pAdmin] >= 1)
        {
            
format(stringsizeof(string), "House {008000}[%d] {FFFFFF}- Renting {008000}[%d] {FFFFFF}- Business {008000}[%d] {FFFFFF}- Interior {008000}[%d] {FFFFFF}- Virtual World {008000}[%d]"houserentbusinessinteriorvw);
            
SendClientMessageEx(playeridCOLOR_WHITEstring);
            
format(stringsizeof(string), "Real VW {008000}[%d] {FFFFFF}- Jail Time {008000}[%d seconds] {FFFFFF}- Mutes {008000}([N-%d]-[AD-%d]-[R-%d]) {FFFFFF}- Giftbox {008000}[%d]"realvwjtimenmutesadmutesrmuteseggs);
            
SendClientMessageEx(playeridCOLOR_WHITEstring);
        }
        if (
PlayerInfo[playerid][pAdmin] >= 4)
        {
            if(
PlayerInfo[targetid][pAdmin] >= 1)
            {
                
format(stringsizeof(string), "Accepted Reports {008000}[%d] {FFFFFF}- Admin Talks Sent {008000}[%d]"PlayerInfo[targetid][pAcceptReport], PlayerInfo[targetid][pAMSSent]);
                
SendClientMessageEx(playeridCOLOR_WHITEstring);
            }
        } 
Reply
#2

Because you use too much colors. If you need to be sure, just test it one line, try removing the {fff..} codes from one line.

Also the best way to show colorful status is to show him the status on a dialog ( showplayerdialog(.. )
Reply
#3

Alright, I'll remove the colors, but I'm ok with SendClientMessage because if I use Dialogs whenever the player use /stats it will block the screen and it will prevent the player to move.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)