reg date
#1

i cant see player register date in this code:
Код:
format(string,128,"registerdate: %02d/%02d/%02d",,PlayerInfo[clickedplayerid][pRegdateD],PlayerInfo[clickedplayerid][pRegdateM],PlayerInfo[clickedplayerid][pRegdateY]);
    SendClientMessage(playerid,COLOR_DARK_GREEN,string);
Reply
#2

pawn Код:
format(string,128,"registerdate: %02d/%02d/%02d",PlayerInfo[clickedplayerid][pRegdateD],PlayerInfo[clickedplayerid][pRegdateM],PlayerInfo[clickedplayerid][pRegdateY]);
    SendClientMessage(playerid,COLOR_DARK_GREEN,string);
you added an extra "," try it now.
Reply
#3

no no i forgot remove , .this is full code and i for share here I deleted its component parts.
Код:
format(string,128,"rank: %s class: %s helmet: %s registerdate: %02d/%02d/%02d",rankname, classname, helm,PlayerInfo[clickedplayerid][pRegdateD],PlayerInfo[clickedplayerid][pRegdateM],PlayerInfo[clickedplayerid][pRegdateY]);
    SendClientMessage(playerid,COLOR_DARK_GREEN,string);
Reply
#4

show me the full command/code please.
Reply
#5

Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new string[128];
    format(string,128,"rank: %s class: %s helmet: %s registerdate: %02d/%02d/%02d",rankname, classname, helm,PlayerInfo[clickedplayerid][pRegdateD],PlayerInfo[clickedplayerid][pRegdateM],PlayerInfo[clickedplayerid][pRegdateY]);
    SendClientMessage(playerid,COLOR_DARK_GREEN,string);
	return 1;
}
Reply
#6

does it show the string at all?
Reply
#7

my problem only register date.class and rank are private.
Reply
#8

How does the string show in game? and try to increase the string size
Reply
#9

14\00\00
Reply
#10

Are you save a Register Date On Your Scriptfiles ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)