stock AntiCheatKick(playerid, string[], reason[])
{
new string[100];
format(string, sizeof(string), "{A9FF63}[ANTI-CHEAT] {FFFFFF}%s has been kicked from the server. {9DFF8C}[REASON] {FFFFFF}%s", GetPlayerName(playerid), reason);
SendClientMessageToAll(-1, string);
SetTimerEx("AntiCheatKickFunction", 1000, 0, "d", playerid);
}
AntiCheatKick(playerid, string, "Test reason"); //The function I should use and then it'll paste the string and afterwards i could write the reason.
C:\Users\us\Desktop\SA-MP 0.3z\gamemodes\gamemode.pwn(315) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\us\Desktop\SA-MP 0.3z\gamemodes\gamemode.pwn(316) : warning 202: number of arguments does not match definition C:\Users\us\Desktop\SA-MP 0.3z\gamemodes\gamemode.pwn(316) : warning 202: number of arguments does not match definition C:\Users\us\Desktop\SA-MP 0.3z\gamemodes\gamemode.pwn(313) : warning 203: symbol is never used: "string"
warning 224: indeterminate array size in "sizeof" expression (symbol "") |
stock AntiCheatKick(playerid, message[], reason[])
{
format(message, sizeof(message), "{A9FF63}[ANTI-CHEAT] {FFFFFF}%s. {9DFF8C}[REASON] {FFFFFF}%s", message, reason);
SendClientMessageToAll(-1, message);
SetTimerEx("AntiCheatKickFunction", 1000, 0, "d", playerid);
}
stock AntiCheatKick(playerid, message[], reason[], size = sizeof(message))
{
format(message, size, "{A9FF63}[ANTI-CHEAT] {FFFFFF}%s. {9DFF8C}[REASON] {FFFFFF}%s", message, reason);
SendClientMessageToAll(-1, message);
SetTimerEx("AntiCheatKickFunction", 1000, 0, "d", playerid);
return 1;
}