public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new tempstring[250];
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
GetPlayerName(playerid,tempstring,sizeof(tempstring));
format(tempstring,sizeof(tempstring),
"%s's Stats\n\nKills: %d\n\nDeaths: %d\n\nScore: %d\n\nJailed: %d [1 = Jailed, 0 = Not Jailed]\n\nAdmin: %d [0 = NonAdmin]\n\nMuted: %d [1 = Muted, 0 = Not Muted]\n\nMoney: $%d.00\n\nIP: %s",tempstring,PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], PlayerInfo[playerid][Score], PlayerInfo[playerid][Jailed], PlayerInfo[playerid][Level], PlayerInfo[playerid][Muted], GetPlayerMoney(playerid), plrIP);
ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Stats",tempstring,"OK","Close");
return 1;
}
Originally Posted by DarK_TeaM PT
what is the real problem i dont understood
|
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new tempstring[250];
new plrIP[16];
GetPlayerIp(clickedplayerid, plrIP, sizeof(plrIP));
GetPlayerName(clickedplayerid,tempstring,sizeof(tempstring));
format(tempstring,sizeof(tempstring),
"%s's Stats\n\nKills: %d\n\nDeaths: %d\n\nScore: %d\n\nJailed: %d [1 = Jailed, 0 = Not Jailed]\n\nAdmin: %d [0 = NonAdmin]\n\nMuted: %d [1 = Muted, 0 = Not Muted]\n\nMoney: $%d.00\n\nIP: %s",tempstring,PlayerInfo[clickedplayerid][Kills], PlayerInfo[clickedplayerid][Deaths], PlayerInfo[clickedplayerid][Score], PlayerInfo[clickedplayerid][Jailed], PlayerInfo[clickedplayerid][Level], PlayerInfo[clickedplayerid][Muted], GetPlayerMoney(clickedplayerid), plrIP);
ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Stats",tempstring,"OK","Close");
return 1;
}
Originally Posted by DarK_TeaM PT
pawn Код:
|
Originally Posted by DarK_TeaM PT
its because the line is too long put it a bit smaller hehe
|
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new tempstring[250];
new plrIP[16];
GetPlayerIp(clickedplayerid, plrIP, sizeof(plrIP));
GetPlayerName(clickedplayerid,tempstring,sizeof(tempstring));
format(tempstring,sizeof(tempstring),
"%s's Stats\n\nKills: %d\n\nDeaths: %d\n\nScore: %d\n\nJailed: %d [1 = Jailed, 0 = Not Jailed]\n\nAdmin: %d [0 = NonAdmin]\n\nMuted: %d [1 = Muted, 0 = Not Muted]\n\nMoney: $%d.00\n\nIP: %s"
,tempstring,PlayerInfo[clickedplayerid][Kills], PlayerInfo[clickedplayerid][Deaths], PlayerInfo[clickedplayerid][Score], PlayerInfo[clickedplayerid][Jailed], PlayerInfo[clickedplayerid][Level], PlayerInfo[clickedplayerid][Muted], GetPlayerMoney(clickedplayerid), plrIP);
ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Stats",tempstring,"OK","Close");
return 1;
}
Originally Posted by DarK_TeaM PT
its easy copy same as im going to put down here
pawn Код:
|