OnPlayerClickPlayer doesn't work
#1

Hey.

got a problem.

When i click myself it only shows

pawn Код:
You clicked Jake_Hero(ID:0)
but didn't show the dialog.
Reply
#2

Quote:
Originally Posted by Romel
Посмотреть сообщение
Hey.

got a problem.

When i click myself it only shows

pawn Код:
You clicked Jake_Hero(ID:0)
but didn't show the dialog.
Can you show us the code ?
Reply
#3

PHP код:
public OnPlayerClickPlayer(playeridclickedplayeridsource)
{
    new 
str[128], str2[356];
    if(
source == 0)
    {
        
format(strsizeof(str), "Viewing %s(ID:%d)'s User Profile"GetName(clickedplayerid), clickedplayerid);
        
SendClientMessage(playerid, -1str);
        
format(strsizeof(str), "{FFFFFF}Viewing %s User Profile"GetName(clickedplayerid));
        
format(str2sizeof(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(playeridDIALOG_DETAILSDIALOG_STYLE_MSGBOXstrstr2"Close""");
        if(
HasVisited[playerid] == 0uD[clickedplayerid][View] += 1;
        else if(
HasVisited[playerid] == 1) return 1;
    }
    return 
1;

even if i remove the if(source == 0)
it doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)