14.12.2013, 17:27
Hey. When I start my server on local host, sscanf prints in console that something is wrong with my command when I use it. This is it:
Does anyone know what is the problem?
pawn Код:
CMD:ban(playerid, params[])
{
new playerb, string[128], reason[24];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(sscanf(params, "us", playerb, reason))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ban [playerid] [reason]");
// part of the code