21.01.2012, 17:59
When I ban someone it'll appear in my web page? Please help me to figure out how to do it.
C:\Users\Alex\Desktop\Archivos\NPCTest\Filterscripts\ladmin4v2.pwn(2652) : error 047: array sizes do not match, or destination array is too small
C:\Users\Alex\Desktop\Archivos\NPCTest\Filterscripts\ladmin4v2.pwn(2652) : warning 209: function "SHOBanEx" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
//2652: return SHOBanEx(player1, string);
public SHOBanEx(playerid, reason[384])
{
new shoquery[384];
GetPlayerName(playerid, shoname, sizeof(shoname));
GetPlayerIp(playerid, shoIP, sizeof(shoIP));
gettime(shoHour, shoMinute, shoSecond);
getdate(shoYear, shoMonth, shoDay);
format(shostring, sizeof(shostring), "%d:%d/%d/%d/%d",shoHour,shoMinute,shoDay,shoMonth,shoYear);
format(shoquery, sizeof(shoquery), "UPDATE `%s`.`SAMP_USERLOG` SET `banned` = '0' WHERE `SAMP_USERLOG`.`playername` = '%s' LIMIT 1", SQL_DB, shoname);
mysql_query(shoquery);
format(shoquery, sizeof(shoquery), "INSERT INTO `%s`.`SAMP` (`playername` ,`IP` ,`reason` ,`admin` ,`start` ,`expires`) VALUES ('%s', '%s', '%s', 'In-Game Ban', '%s', '0')", SQL_DB, shoname, shoIP, reason, shostring);
mysql_query(shoquery);
SendClientMessage(playerid, COLOR_SHBANDENY, "You have been banned from the server!");
Kick(playerid);
return 1;
}