[/STATS] Help
#1

help me
PHP Code:
#if defined USE_STATS
CMD:stats(playerid,params[]) {
    new 
string[128], pDeathsplayer1hms;
    if(
isnull(params)) player1 playerid;
    else 
player1 strval(params);
    if(
IsPlayerConnected(player1)) {
        
TotalGameTime(player1hms);
         if(
PlayerInfo[player1][Deaths] == 0pDeaths 1; else pDeaths PlayerInfo[player1][Deaths];
        
format(stringsizeof(string), "%s :  Level:%d | VIP:%d | Kills:%d | Deaths:%d | Ratio:%0.2f | Money:$%d | Bank:$%d | Time:%dhrs%dmins%dsecs | ",PlayerName2(player1),PlayerInfo[player1][Level],PlayerInfo[player1][Vip], PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths],Float:PlayerInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1),PlayerInfo[player1][bank], hms);
        
ShowPlayerDialog(playerid,6969,DIALOG_STYLE_MSGBOX,"Stats",string,"Ok","");
        return 
SendClientMessage(playeridgreenstring);
    } else return 
SendClientMessage(playeridred"Player Not Connected!");
}
#endif 
i want like this,
not like this

help me to change the code
Reply
#2

not like this
Reply
#3

Bump,I Really Need Help.Help Me Please
Reply
#4

Use \n (its line break).
Reply
#5

How,teach me please.
Reply
#6

Show Your Dialog 6969
Reply
#7

like this?

PHP Code:
#if defined USE_STATS
CMD:stats(playerid,params[]) {
    new 
string[128], pDeathsplayer1hms;
    if(
isnull(params)) player1 playerid;
    else 
player1 strval(params);

    if(
IsPlayerConnected(player1)) {
        
TotalGameTime(player1hms);
         if(
PlayerInfo[player1][Deaths] == 0pDeaths 1; else pDeaths PlayerInfo[player1][Deaths];
        
format(stringsizeof(string), "%s :  Level:%d\nVIP:%d\nKills:%d\nDeaths:%d\nRatio:%0.2f\nMoney:$%d\nBank:$%d\nTime:%dhrs%dmins%dsecs | ",PlayerName2(player1),PlayerInfo[player1][Level],PlayerInfo[player1][Vip], PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths],Float:PlayerInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1),PlayerInfo[player1][bank], hms);
        
ShowPlayerDialog(playerid,6969,DIALOG_STYLE_MSGBOX,"Stats",string,"Ok","");
        return 
SendClientMessage(playeridgreenstring);
    } else return 
SendClientMessage(playeridred"Player Not Connected!");
}
#endif/ 
Reply
#8

Close this topic please

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)