01.06.2016, 17:40
Quote:
Erros em sua include MySQL.
Poste estas 3 linhas (171, 305 e 2039) |
Код:
forward load_Map_basic(Mapid, name[], value[]);
Код:
function RandomMessages() { new randomMsg = random(sizeof(randomMessages)); SendClientMessageToAll(-1, randomMessages[randomMsg])); //Linha 305 }
Код:
stock CheckBan(playerid) { new Query[500],playerIP[16],timeBanned[256],largestringtwo[256],adminName[24],bannedName[24],reasonBanned[128]; GetPlayerIp(playerid, playerIP, sizeof(playerIP)); format(Query, sizeof(Query), "SELECT * FROM `banlog` WHERE ( `Name` = '%s' OR `pIPBanned` = '%s' ) AND `pAccountLock` = '1' LIMIT 1",PlayerName(playerid),playerIP); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() != 0) { while(mysql_fetch_row(Query)) { mysql_fetch_field_row(reasonBanned, "pBannedReason"); mysql_fetch_field_row(adminName, "pBannedBy"); mysql_fetch_field_row(timeBanned, "pTime"); mysql_fetch_field_row(playerIP, "pIPBanned"); mysql_fetch_field_row(bannedName, 'Name'); //Linha 2039 Aqui !!!!!! } format(largestringtwo, sizeof(largestringtwo), "You are currently banned from this server. \r\nUser: %s \r\nIP: %s \r\nTime: %s \r\nAdmin: %s\r\nReason: %s", bannedName, playerIP, timeBanned, adminName, reasonBanned); ShowPlayerDialog(playerid, DIALOG_BANNED, DIALOG_STYLE_MSGBOX, "You are banned from this server", largestringtwo, "Leave", ""); Kick(playerid); printf("Username %s || IP %s is banned!",PlayerName(playerid),playerIP); } return 1; }