29.07.2010, 23:48
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new coordsstring[256];
new name[MAX_PLAYER_NAME];
new clickedplayeridname[MAX_PLAYER_NAME];
GetPlayerName(clickedplayerid, clickedplayeridname, sizeof(clickedplayeridname));
GetPlayerName(playerid, name, sizeof(name));
new levelplayer = PlayerInfo[clickedplayerid][pLevel];
new ageplayer = PlayerInfo[clickedplayerid][pAge];
new numberplayer = PlayerInfo[clickedplayerid][pPnumber];
new moneyplayer = PlayerInfo[clickedplayerid][pCash];
new pointsplayer = PlayerInfo[clickedplayerid][pPoints];
format(coordsstring, sizeof(coordsstring), "---[Status - %s]---", clickedplayeridname);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Level - %s", levelplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Age - %s", ageplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Phone Number - %s", numberplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Cash - %s", moneyplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Points - %s", pointsplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "%s looked at your status (TAB and double-clicked you) !", name);
SendClientMessage(clickedplayerid, COLOR_GREEN, coordsstring);
return 1;
}
Well, here`s what i get ingame what am i doing wrong ??
http://img.b-zone.ro/images/67088922544654046590.png
P.S.: MihaiTZa55 is my name ingame
(it`s in Romanian ingame, i translated the code here so u can understand)