19.02.2019, 06:44
error 001: expected token: "-identifier-", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Error is in this lines :
and
Pawn code :
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Error is in this lines :
Quote:
new query[200], admin[50], pname[50], IP[16], string1[100]; |
Quote:
GetPlayerIp(playerid, IP, 16); |
Pawn code :
Quote:
stock MySQL_BanCheck(playerid) { new query[200], admin[50], pname[50], IP[16], string1[100]; GetPlayerIp(playerid, IP, 16); format(query, sizeof(query),"SELECT * FROM `bandata` WHERE(`player`='%s' OR `IP`='%s') AND `banned`=1 LIMIT 1", escpname(playerid), IP); mysql_query(query); mysql_store_result(); if(mysql_num_rows() != 0) { while(mysql_fetch_row(query)) { mysql_fetch_field_row(admin, "admin"); mysql_fetch_field_row(pname, "player"); mysql_fetch_field_row(string1, "reason"); } new string[50], str[50], str1[100]; format(string, sizeof(string),"Admin: {FFFFFF}%s", admin); format(str, sizeof(str),"Player: {FFFFFF}%s", pname); format(str1, sizeof(str1),"Reason: {FFFFFF}%s", string1); SendClientMessage(playerid, RED,"You are banned from this server!"); SendClientMessage(playerid, RED,"___________________"); SendClientMessage(playerid, RED, str); SendClientMessage(playerid, RED, string); SendClientMessage(playerid, RED, str1); SendClientMessage(playerid, RED,"___________________"); SendClientMessage(playerid, RED, "If you think you this is a mistake please visit our website"); SendClientMessage(playerid, RED, "www.cod-samp.in"); //Change ME! Kick(playerid); } mysql_free_result(); return 1; } |