20.10.2012, 10:20
PHP код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new str[128], str2[356];
if(source == 0)
{
format(str, sizeof(str), "Viewing %s(ID:%d)'s User Profile", GetName(clickedplayerid), clickedplayerid);
SendClientMessage(playerid, -1, str);
format(str, sizeof(str), "{FFFFFF}Viewing %s User Profile", GetName(clickedplayerid));
format(str2, sizeof(str2), "{FFFFFF}Name: %s\nScore: %i\nCash: $%i\nViews: %i\nReputation: %i", GetName(clickedplayerid), GetPlayerScore(clickedplayerid), GetPlayerMoney(clickedplayerid), uD[clickedplayerid][View], uD[clickedplayerid][Reputation]);
ShowPlayerDialog(playerid, DIALOG_DETAILS, DIALOG_STYLE_MSGBOX, str, str2, "Close", "");
if(HasVisited[playerid] == 0) uD[clickedplayerid][View] += 1;
else if(HasVisited[playerid] == 1) return 1;
}
return 1;
}
it doesn't work.