Errors I don't know how to fix
#3

Try this, you had a ')' more, so you ended the format before it's needed

Код:
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\nPhone Number: %s\nBounty: %s\nBounty 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)