Errors I don't know how to fix
#5

You have a bracket after PlayerInfo[giveplayerid][pHeadValue] and you need to put a \ at the end of the line.

This is correct:
pawn Код:
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), "Name: %s\n \
            Date of Birth: %s\n \
            Phone Number: %s\n \
            Bounty: %s\n \
            Bounty Reason: %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;
}
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: 2 Guest(s)