05.08.2014, 22:16
hello scripters ,I have Problem with that command:
The Error:
in that line:
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;
}
Код:
D:\Private\Server\gamemodes\LSC-RP.pwn(22633) : error 035: argument type mismatch (argument 2)
pawn Код:
ShowStats(playerid, playerb);