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;
}
format(coordsstring, sizeof(coordsstring), "Level - %d", levelplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Age - %d", ageplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Phone Number - %d", numberplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Cash - %d", moneyplayer);
SendClientMessage(playerid, COLOR_GREEN, coordsstring);
format(coordsstring, sizeof(coordsstring), "Points - %d", pointsplayer);
Use different string thingy mer bobbers that i have no clue what they are called:
%s = Format a string %d = Format a whole Intenger %i = Format a single Intenger %f = Format a format...and so on. I'm guessing your age thing should be a number, so try changing %s to %i under the format of age. |
"%f formats a float, not a format ^^
Case you'd like to know more: https://sampwiki.blast.hk/wiki/Format |
Use different string thingy mer bobbers that i have no clue what they are called:
%s = Format a string %d = Format a whole Intenger %i = Format a single Intenger %f = Format a format...and so on. I'm guessing your age thing should be a number, so try changing %s to %i under the format of age. |