offline stats check
#1

hello scripters ,I have Problem with that command:
pawn Код:
CMD:ocheckstats(playerid, params[])
{
    new playerb[32],file[32];
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
    if(!sscanf(params, "s[32]", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ocheckstats [playername]");
    if(RPIDFN(playerb) != INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Player is connected to the server, use /checkstats instead.");
    format(file, sizeof(file), "users/%s.ini", playerb);
    if(!dini_Exists(file)) return SendClientMessage(playerid, COLOR_GREY, "Player name not found.");
    ShowStats(playerid, playerb); // that line
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   You are not authorized to use that command !");
    }
    return 1;
}
The Error:
Код:
D:\Private\Server\gamemodes\LSC-RP.pwn(22633) : error 035: argument type mismatch (argument 2)
in that line:
pawn Код:
ShowStats(playerid, playerb);
Reply


Messages In This Thread
offline stats check - by AhmedGang - 05.08.2014, 22:16
Re: offline stats check - by JessThompson - 05.08.2014, 22:26
Re: offline stats check - by AhmedGang - 05.08.2014, 22:30
Re: offline stats check - by Jefff - 05.08.2014, 22:36
Re: offline stats check - by Callum98 - 05.08.2014, 22:37
Re: offline stats check - by JessThompson - 05.08.2014, 22:38
Re: offline stats check - by AhmedGang - 05.08.2014, 22:39
Re: offline stats check - by Jefff - 05.08.2014, 22:42
Re: offline stats check - by AhmedGang - 05.08.2014, 22:58

Forum Jump:


Users browsing this thread: 1 Guest(s)