reg date - 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: reg date (
/showthread.php?tid=598582)
reg date -
GeneralAref - 14.01.2016
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);
Re: reg date -
Eth - 14.01.2016
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.
Re: reg date -
GeneralAref - 14.01.2016
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);
Re: reg date -
Eth - 14.01.2016
show me the full command/code please.
Re: reg date -
GeneralAref - 14.01.2016
Код:
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;
}
Re: reg date -
Eth - 14.01.2016
does it show the string at all?
Re: reg date -
GeneralAref - 14.01.2016
my problem only register date.class and rank are private.
Re: reg date -
Eth - 14.01.2016
How does the string show in game? and try to increase the string size
Re: reg date -
GeneralAref - 15.01.2016
14\00\00
Re: reg date -
Amunra - 15.01.2016
Are you save a Register Date On Your Scriptfiles ?