18.02.2013, 14:32
Hello,
I got an unban system (Not made by me) but I'm getting these errors
and this is the system
I got an unban system (Not made by me) but I'm getting these errors
Код:
(3045) : error 012: invalid function call, not a valid address (3045) : warning 215: expression has no effect (3045) : error 001: expected token: ";", but found ")" (3045) : error 029: invalid expression, assumed zero (3045) : fatal error 107: too many error messages on one line
pawn Код:
public OnQueryFinishEx(thread_id, pl, playerid)
{
new string[128], plname[MAX_PLAYER_NAME], reason[64], val;
switch(thread_id)
{
case UNBAN_THREAD:
{
if(mysql_affected_rows(gHandle))
{
GetPVarString(playerid, "UnbanPL", plname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s has successfully been unbanned.", plname);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "AdminMessage: %s was unbanned by %s.", plname, pName(playerid)); // error line
SendAdminMessage(COLOR_LIGHTRED, string, 1);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Could not unban the player.");
}
DeletePVar(playerid, "UnbanPL");
return 1;
}