D:\\GTA modok\\modom\\pawno\\include\\PPC_PlayerCommands.inc(4980) : warning 202: number of arguments does not match definition
D:\\GTA modok\\modom\\pawno\\include\\PPC_PlayerCommands.inc(5003) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
forward IpBanTimer(playerid);
// Bans a player by his ip
COMMAND:ipban(playerid, params[])
{
// Setup local variables
new PlayerToBan, Reason[128], Msg[128], Name[24], AdminName[24];
// Send the command to all admins so they can see it
SendAdminText(playerid, \"/ipban\", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player\'s admin-level is at least 3
if (APlayerData[playerid][PlayerLevel] >= 3)
{
if (sscanf(params, \"us[128]\", PlayerToBan, Reason))
SendClientMessage(playerid, 0xFF0000AA, \"Használd: \\\"/ipban else
{
if (IsPlayerConnected(PlayerToBan))
{
// Get the names of the player and the admin who executed the ban
GetPlayerName(playerid, AdminName, sizeof(AdminName));
GetPlayerName(PlayerToBan, Name, sizeof(Name));
// Inform the player about his ban
format(Msg, 128, \"{FF0000}Bannolva lettél {FFFFff}%s {ffff00}által\", AdminName);
SendClientMessage(PlayerToBan, 0xFFFFFFFF, Msg);
format(Msg, 128, \"{FF0000}Indok: {FFFF00}%s\", Reason);
SendClientMessage(PlayerToBan, 0xFFFFFFFF, Msg);
UjBanEx(PlayerToBan, Reason); //ez itt // Ban the player with a reason
// Inform everybody else which player was ip-banned
format(Msg, 128, \"{808080}%s %s adott ip-banned {FFFF00}%s\", AdminLevelName[APlayerData[playerid][PlayerLevel]], AdminName, Name);
SendClientMessageToAll(0xFFFFFFFF, Msg);
}
}
}
else
return 0;
}
else
return 0;
return 1;
}
stock UjBanEx(PlayerToBan)
{
SetTimerEx(\"IpBanTimer\",1000,false,\"u\",PlayerToBan);
}
public IpBanTimer(playerid)
{
BanEx(playerid);//ez itt
return 1;
}
Ki tud ebben segíteni?