17.06.2012, 06:16
Quote:
pawn Код:
pawn Код:
|
Код:
: error 029: invalid expression, assumed zero : warning 217: loose indentation : error 017: undefined symbol "sext" : warning 215: expression has no effect : error 001: expected token: ";", but found "]" : fatal error 107: too many error messages on one line
pawn Код:
public ShowStats(playerid,targetid)
{
new string[250],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),""embed_blue"%s "embed_white"stats\n\
"embed_blue"Age:"embed_white"$%s\n\
"embed_blue"Gender:"embed_white"%s\n\
"embed_blue"Money:"embed_white"$%d\n\
"embed_blue"Kills:"embed_white"%d\n\
"embed_blue"Deaths:"embed_white"%d",
pName,
pInfo[playerid][Age],
new sext[28];
if(pInfo[playerid][Gender] == 1) { sext = "Male"; } else { sext = "Female"; }
pInfo[playerid][pMoney],
pInfo[playerid][Kills],
pInfo[playerid][Deaths]);
ShowPlayerDialog(playerid,1234,DIALOG_STYLE_MSGBOX,""embed_white"Stats",string,"Ok","");
return 1;
}
Yes it is. Btw guys I retired from scripting about 2009, I dabbled back in it back in 2011. The Dialog system is a bit new to me, I am sorry I am learning it as fast as I can.