10.11.2012, 13:01
Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source) { new INI:File = INI_Open("Users/%s.ini",(playerid)); PlayerInfo[playerid][pLevel] = INI_ReadInt("level"); PlayerInfo[playerid][pKills] = INI_ReadInt("kills"); PlayerInfo[playerid][pDeaths] = INI_ReadInt("Deaths"); INI_Close(); new PName[MAX_PLAYER_NAME],strg [190]; GetPlayerName(clickedplayerid, PName, sizeof (PName)); format(strg,sizeof(strg),"{F81414} you are viewing {FFFFFF} %s stats \n {00CED1} Kills : {FFFFFF} %d \n {00CED1} Deaths : {FFFFFF} %d \n {00CED1} Level : {FFFFFF} %d ",PName,pKills,pDeaths,pLevel); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{00FF04}Player Stats",strg,"Close","Done"); return 1; }
Код:
D:\script\gamemodes\DeathMatchADD.pwn(454) : warning 202: number of arguments does not match definition D:\script\gamemodes\DeathMatchADD.pwn(454) : warning 213: tag mismatch D:\script\gamemodes\DeathMatchADD.pwn(454) : warning 204: symbol is assigned a value that is never used: "File"