29.12.2015, 11:13
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), "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;
}
./includes/commands.pwn(55789) : error 029: invalid expression, assumed zero
./includes/commands.pwn(55789) : error 017: undefined symbol "s"
./includes/commands.pwn(55789) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
The line
Код:
format(string, sizeof(string), "Name: %s\n