Errors I don't know how to fix
#6

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



Current code:
PHP код:
CMD:profile(playeridparams[])
{
    if(
IsAHitman(playerid))
    {
        new 
string[128], giveplayerid;
        if(
sscanf(params"u"giveplayerid)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /profile [player]");

        if(
IsPlayerConnected(giveplayerid))
        {
            
format(stringsizeof(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(playeridDIALOG_PROFILE,DIALOG_STYLE_MSGBOX,"Target Profile",string,"OK");
        }
    }
    return 
1;

Reply


Messages In This Thread
Errors I don't know how to fix - by Avetsky - 29.12.2015, 11:13
Re: Errors I don't know how to fix - by Tamy - 29.12.2015, 11:18
Re: Errors I don't know how to fix - by SecretBoss - 29.12.2015, 11:25
Re: Errors I don't know how to fix - by graef - 29.12.2015, 11:39
Re: Errors I don't know how to fix - by J4Rr3x - 29.12.2015, 11:45
Re: Errors I don't know how to fix - by Avetsky - 29.12.2015, 11:46
Re: Errors I don't know how to fix - by AndySedeyn - 29.12.2015, 11:50
Re: Errors I don't know how to fix - by graef - 29.12.2015, 11:50
Re: Errors I don't know how to fix - by Avetsky - 29.12.2015, 11:52
Re: Errors I don't know how to fix - by Avetsky - 29.12.2015, 12:04

Forum Jump:


Users browsing this thread: 3 Guest(s)