01.01.2015, 23:14
You are using an else-if statement which is nested inside an IF statement.
And what is this?
pawn Код:
if (isnull(params))
{
ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, "%s", "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d",GetPlayerName(playerid),GetPlayerMoney(playerid),pInfo[playerid][Kills],pInfo[playerid][Deaths] "Close", "");
if(IsPlayerConnected(id))
{
ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, "%s", "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d",GetPlayerName(id),GetPlayerMoney(id),pInfo[id][Kills],pInfo[id][Deaths] "Close", "");
}
else return SendClientMessage(playerid,0xFF000080,"Player has not logged in the server!");
}
pawn Код:
sscanf(params, "u", id);