02.01.2015, 11:57
Lol.
First. You don't use sscanf correctly:
Then... ShowPlayerDialog. Lol lmfao. You can't do that. You need to format it.
Then. else & return? lol.
You don't check good if he's connected..
Then continue with your code.
First. You don't use sscanf correctly:
pawn Код:
if(sscanf(params, "u", id) return SendClientMessage(playerid, -1, "/Stats [ID]");
pawn Код:
new string[128];
format(string, sizeof(string), "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d",GetPlayerName(playerid),GetPlayerMoney(playerid),pInfo[playerid][Kills],pInfo[playerid][Deaths]);
ShowPlayerDialog(playerid, dstats, DIALOG_STYLE_MSGBOX, "Account Stats", string, "Close", "");
pawn Код:
else
{
SendClientMessage(playerid,0xFF000080,"Player has not logged in the server!");
}
pawn Код:
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF000080,"Player has not logged in the server!");