Jump to content

Question

Posted

Salutare ...M-am apucat de un gamemode nou..Am inceput cu un sistem de logare pe ysi si nu stiu cum sa fac un sistem de stats..Imi poate explica cineva sau sa imi dea un tutorial va rog frumos?

2 answers to this question

Recommended Posts

Posted

parca tiam spus pe mess...ca depinde ce ai tu pe sv :|

CMD:stats(playerid,params[])
{
ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "Player Stats", ShowStats(playerid), "Ok", "");
}
stock ShowStats(playerid)
{
    new h, m, s, SString[6][712], SStringF[3024];
	TotalGameTime(playerid, h, m, s);
	//--------------------------------------------------------------------------
	format(SString[2], 712, "{1DEE01}Online Time: {06FBFB}%d{1DEE01} hrs, {06FBFB}%d{1DEE01} mins, {06FBFB}%d{1DEE01} secs\n",h,m,s);
	//--------------------------------------------------------------------------
	format(SString[0], 712, "{FF0101}%s {1DEE01}'s {1DEE01}Statistics\n\n\
							 {FA4205}General Statistics\n\
							 {1DEE01}Money: {06FBFB}$%d\n\
							 {1DEE01}Score: {06FBFB}%d\n",
							 PlayerName2(playerid),
							 GetPlayerMoney(playerid),
							 GetPlayerScore(playerid));
	//--------------------------------------------------------------------------
	format(SStringF, 3024, "%s\n%s\n%s\n%s", SString[0], SString[1], SString[2], SString[4]);
	//--------------------------------------------------------------------------
	return SStringF;
}

tiam facut...unu dp modifici tu ... cu ce ai si continui

daca am gresit ceva...rog pe cei care observa...ceva greseala

trebuie sa specific ca lam creeat in graba ca sunt obosit

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

Uite un exemplu:

[tt]CMD:stats( playerid, params[ ] )

{

new String[ 256 ];

format( String, sizeof( String ), "Money: %d Score: %d", GetPlayerMoney( playerid ), GetPlayerScore( playerid ) ) ;

SendClientMessage( playerid, -1, String ) ;

return 1;

}

[/tt]

7bdea99b11.png

rimmon curv.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.