25.10.2018, 10:44
Error:-
Code:-
Full Filterscript:- https://pastebin.com/bUjyqJHr
Quote:
C:\Users\BladeGamingYT\Desktop\X-Gang.pwn(895) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
Код:
COMMAND:okickmember(playerid, params[]) { new TempName[MAX_PLAYER_NAME]; if(Player[playerid][PlayerStatus] == GANG_STAFF) { if(sscanf(params, "s[24]", TempName)) { SendClientMessage(playerid, COLOR_WHITE, "[SYNTAX] '/okickmember' <member name>"); } else { new query[256], i = Player[playerid][PlayerGang]; format(query, sizeof(query), "SELECT * FROM `member` WHERE `name` = '%s'", Escape(TempName)); mysql_query(query, -1, 0, connection); mysql_store_result(connection); if(mysql_num_rows(connection) != 0) { mysql_fetch_field("gang", query, connection); if(strval(query) == Gang[i][GangID]) { mysql_fetch_field("id", query, connection); if(strval(query) != Player[playerid][PlayerID]) { mysql_fetch_field("status", query, connection); if(strval(query) != GANG_LEADER) { format(query, sizeof(query), "UPDATE `member` SET `gang` = -1, `status` = 1 WHERE `name` = '%s'", Escape(TempName)); mysql_query(query, -1, 0, connection); format(query, sizeof(query), "{FF0000}(Gang Chat) %s has been kicked from gang!", TempName); SendGangMessage(i, query); new p = GetID(TempName); if(IsPlayerConnected(p)) { SendClientMessage(p, COLOR_WHITE, "[HINT] You have been kicked from gang!"); Player[p][PlayerGang] = -1; Player[p][PlayerStatus] = GANG_MEMBER; } } else SendClientMessage(playerid, COLOR_RED, "You can't kick gang leader!"); } else SendClientMessage(playerid, COLOR_RED, "You can't kick yourself!"); } else SendClientMessage(playerid, COLOR_RED, "That player isn't in your gang!"); } else SendClientMessage(playerid, COLOR_RED, "ERROR 404: Name not found!"); mysql_free_result(connection); } //Line No.895 else { SendClientMessage(playerid, COLOR_RED, "You must be a gang leader or gang staff to use this command!"); } } return 1; }