OnPlayerClickPlayer(playerid,clickedplayerid,sourc e)
#1

Код:
510.public OnPlayerClickPlayer(playerid, clickedplayerid, source)
511.{
512.PlayerInfo[playerid][pLevel] = INI_ReadInt("level");
513.PlayerInfo[playerid][pKills] = INI_ReadInt("kills");
514.PlayerInfo[playerid][pDeaths] = INI_ReadInt("Deaths");

515.  INI_Close();
  

519.  new PName[MAX_PLAYER_NAME],strg [128];
520.  GetPlayerName(clickedplayerid, PName, sizeof (PName));
521.  format(strg,sizeof ( strg ),"{F81414} you are viewing {FFFFFF} %s stats ", PName);
522.                             "{00CED1} Kills : {FFFFFF} %d", pKills);
523.                              "{00CED1} Deaths : {FFFFFF} %d", pDeaths);
524.                              "{00CED1} Level : {FFFFFF} %d", pLevel);
525.  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{00FF04}Player Stats",strg,"Close","Done");

527.	return 1;
528.}
Код:
D:\script\gamemodes\DeathMatchADD.pwn(522) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(522) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(522) : error 001: expected token: ";", but found ")"
D:\script\gamemodes\DeathMatchADD.pwn(522) : error 029: invalid expression, assumed zero
D:\script\gamemodes\DeathMatchADD.pwn(522) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(523) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(523) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(523) : error 001: expected token: ";", but found ")"
D:\script\gamemodes\DeathMatchADD.pwn(523) : error 029: invalid expression, assumed zero
D:\script\gamemodes\DeathMatchADD.pwn(523) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(524) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(524) : warning 215: expression has no effect
D:\script\gamemodes\DeathMatchADD.pwn(524) : error 001: expected token: ";", but found ")"
D:\script\gamemodes\DeathMatchADD.pwn(524) : error 029: invalid expression, assumed zero
D:\script\gamemodes\DeathMatchADD.pwn(524) : warning 215: expression has no effect
Reply
#2

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    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 [128];
    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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)