29.12.2015, 11:46
This is what it shows in-game, I added color formats into the code, what might be wrong with it then?

Current code:

Current code:
PHP код:
CMD:profile(playerid, params[])
{
if(IsAHitman(playerid))
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /profile [player]");
if(IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "{ff7575}Name: {ffffff}%s\n{ff7575}Date of Birth: {ffffff}%s\n{ff7575}Phone Number: {ffffff}%s\n\n{ff7575}Bounty: {ffffff}%s\n{ff7575}Bounty Reason: {ffffff}%s\n",GetPlayerNameEx(giveplayerid), PlayerInfo[giveplayerid][pBirthDate], PlayerInfo[giveplayerid][pPnumber], PlayerInfo[giveplayerid][pHeadValue], PlayerInfo[giveplayerid][pContractDetail]);
ShowPlayerDialog(playerid, DIALOG_PROFILE,DIALOG_STYLE_MSGBOX,"Target Profile",string,"OK");
}
}
return 1;
}