OnPlayerClickPlayer problem
#1

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;
}
Damn, there`s my code, looks cool, right ?
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)
Reply


Messages In This Thread
OnPlayerClickPlayer problem - by mihaitza55 - 29.07.2010, 23:48
Re: OnPlayerClickPlayer problem - by WillyP - 29.07.2010, 23:52
Re: OnPlayerClickPlayer problem - by mihaitza55 - 29.07.2010, 23:53
Re: OnPlayerClickPlayer problem - by Toni - 29.07.2010, 23:56
Re: OnPlayerClickPlayer problem - by -Rebel Son- - 30.07.2010, 07:03
Re: OnPlayerClickPlayer problem - by [L3th4l] - 30.07.2010, 08:05
Re: OnPlayerClickPlayer problem - by Mike Garber - 30.07.2010, 08:14
Re: OnPlayerClickPlayer problem - by Hiddos - 30.07.2010, 10:43
Re: OnPlayerClickPlayer problem - by Toni - 30.07.2010, 14:52
Re: OnPlayerClickPlayer problem - by CoaPsyFactor - 30.07.2010, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)