Jump to content
  • 0

pomoc Problem s /info


TeeZee

Dotaz

Zdravím,

 

if (strcmp("/info", cmdtext, true, 10) == 0)
	{
		new str[1000+1];
    	format(str, sizeof(str), "Nick: %s\n\
    	                          Skin: %s\n\
    	                          -------------------------------------\n\
			  					  Nahraný čas: %dh %dm %ds\n\
			  					  -------------------------------------\n\
								  Úmrtia: %s\n\
								  z toho samovraždy: %s", meno(playerid),GetPlayerSkin(playerid), info[playerid][Hodiny], info[playerid][Minuty], info[playerid][Sekundy], info[playerid][Umrtia], info[playerid][Samovrazdy]);
    	ShowPlayerDialog(playerid, d_info, DIALOG_STYLE_MSGBOX, "Informácie o tvojom účte", str, "Ok", "");
		return 1;
	}

Neukazuje mi "skin", "umrtia" a "z toho samovrazdy" ... Inak nick, nahratý čas ukazuje v pohode.

Za každé použiteľné riešenie ďakujem.

 

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

Ježiš, šak som sprostí ... :d

Díki ...

A ešte jedna vec, ako spravim aby sa zaratavali aj zabiatia (killi) ? Lebo to neviem ... Všetko robim cez enum, takze aj toto by som tak chcel mať.

Link to comment
Share on other sites

  • 0

Tu máš pekný príklad:

new PlayerDeaths[MAX_PLAYERS];
new PlayerKills[MAX_PLAYERS];
 
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason); // Shows the kill in the killfeed
 
    // Check that the killerid is valid before doing anything with it
    if(killerid != INVALID_PLAYER_ID)
    {
        PlayerKillCount[killerid] ++;
    }
 
    // Outside the check, handle stuff for playerid (it's always valid)
    PlayerDeaths[playerid] ++;
    return 1;
}

WIKI: http://wiki.sa-mp.com/wiki/OnPlayerDeath
Teda ak som ťa správne pochopil čo chceš :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...