Jump to content
  • 0

Problema comanda /stats nu functioneaza corect, Help !


|EZEr0|R3k

Question

Deci dupa cum spune si subiectul am o problema cu comanda /stats uitati comanda :

CMD:stats(playerid, params[])

{

new afile[10000], targetid, str[1950], str2[1950], str3[1950], P1Register[4], P1Logged[15], sLine[400];

    new PName[MAX_PLAYER_NAME];

if (isnull(params)) targetid = playerid;

else targetid = strval(params);

    if(IsPlayerConnected(targetid)) {

GetPlayerName(targetid, PName, MAX_PLAYER_NAME);

    format(afile,sizeof(afile),"/ladmin/users/%s.sav",udb_encode(PlayerName2(playerid)));

if (!udb_Exists(PlayerName2(playerid))) return SendClientMessage(playerid,red,"Nu aveti cont pe server !!!Va rugam inregistrativa !!! <'/register [password]'>.");

if(fexist(afile)) P1Register = "Yes"; else P1Register = "No";

    if(PlayerInfo[ playerid ][LoggedIn] == 1) P1Logged = "Yes"; else P1Logged = "{FC0303}No";

    format(sLine, sizeof(sLine), "{fff000}+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+");

  format(str3, sizeof(str3), "{0049FF}*{0049FF}Coins: {FFFF00}%d \n\n", PlayerInfo[ targetid ][ Coins ]);

    format(str2, sizeof(str2), "{0049FF}*{0049FF}Player Money: {FFFF00}$%d \n{0049FF}*{0049FF}Player Visits: {FFFF00}%i \n{0049FF}*{0049FF}Skin: {FFFF00}%d\n{0049FF}*{0049FF}Registered: {FFFF00}%s \n{0049FF}*{0049FF}Logged: {FFFF00}%s \n{0049FF}*{0049FF}Score: {FFFF00}%d \n{0049FF}*{0049FF}Admin Level: {FFFF00}%d \n%s%s", GetPlayerMoney( targetid ), PInfo[ targetid ][ Visits ], GetPlayerSkin( targetid ), P1Register, P1Logged, GetPlayerScore( targetid ), PlayerInfo[ targetid ][ Level ], str3, sLine);

format(str, sizeof(str), "%s \n{FC0303}%s{0049FF}'s Stats \n \n {0049FF}*{0049FF}Time Played: \n {FFFF00}%i {0049FF}*{0049FF}hours\n{FFFF00} %02i {0049FF}*{0049FF}minutes \n{0049FF}*{0049FF} Player Kills: {FFFF00}%i \n{0049FF}*{0049FF}Player Deaths: {FFFF00}%i \n{0049FF}*{0049FF}V.I.P Level: {FFFF00}%d\n%s", sLine, PName, PInfo[ targetid ][ HoursPlayed ], PInfo[ targetid ][ MinutesPlayed ], PlayerInfo[ targetid ][ Kills ], PlayerInfo[ targetid ][ Deaths ], pVipInfo[ targetid ][ Vip ], str2);

return ShowPlayerDialog(playerid, 758, 0, ""B"Energy"YE"-"R"Stunt {0049FF}Player Stats", str, "Ok", "Cancel");

} else return SendClientMessage(playerid, red, "Player Not Connected!");

}

Nu stiu ce n-am facut corect nu imi apar orele jucate nu apar minutele si inca cateva ce trebuie facut ?

Ma ajuta cineva ?Va rog frumos!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.