(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
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;
}
case UNBAN_THREAD:
case UNBAN_THREAD
Remove the ":" at the end of: pawn Code: case UNBAN_THREAD: So it should be like this: pawn Code: case UNBAN_THREAD |
case Something:
{
}
Remove the ":" at the end of:
pawn Код:
pawn Код:
|
format(string, sizeof(string), "AdminMessage: %s was unbanned by %s.", plname, pName(playerid));
which is 3045 ??
can't be , case is used like that PHP код:
|
Remove the ":" at the end of:
pawn Код:
pawn Код:
|
pName[126],
(3035) : warning 203: symbol is never used: "val" (3035 -- 3075) : warning 209: function "OnQueryFinishEx" should return a value
new string[128], plname[MAX_PLAYER_NAME], reason[64], val; //line 3035
return 1;
}
}
} //Line 3075