Cannot make a command
#6

Lol.

First. You don't use sscanf correctly:

pawn Код:
if(sscanf(params, "u", id) return SendClientMessage(playerid, -1, "/Stats [ID]");
Then... ShowPlayerDialog. Lol lmfao. You can't do that. You need to format it.

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", "");
Then. else & return? lol.

pawn Код:
else
{
    SendClientMessage(playerid,0xFF000080,"Player has not logged in the server!");
}
You don't check good if he's connected..

pawn Код:
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF000080,"Player has not logged in the server!");
Then continue with your code.
Reply


Messages In This Thread
Cannot make a command - by Axey187 - 02.01.2015, 11:47
Re: Cannot make a command - by Glossy42O - 02.01.2015, 11:49
Re: Cannot make a command - by Sawalha - 02.01.2015, 11:49
Re: Cannot make a command - by Facerafter - 02.01.2015, 11:50
Re: Cannot make a command - by Axey187 - 02.01.2015, 11:54
Re: Cannot make a command - by HY - 02.01.2015, 11:57
Re: Cannot make a command - by Facerafter - 02.01.2015, 11:58
Re: Cannot make a command - by Axey187 - 02.01.2015, 12:04
Re: Cannot make a command - by ATGOggy - 02.01.2015, 12:09
Re: Cannot make a command - by Facerafter - 02.01.2015, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)