- | Afiseaza codul
#include <amxmisc> #define MAX_PLAYERS 32 new xID[MAX_PLAYERS][22] public plugin_init() { register_plugin("No Retry With Slay", "1.0", "x") register_cvar("amx_retrytime","60") register_cvar("amx_retryslay","1") register_cvar("amx_showx","1") register_cvar("amx_slaymsg","1") return 1 } public client_putinserver(id) { if ((is_user_bot(id)) || (get_user_flags(id) & ADMIN_IMMUNITY)){ return 1 } new ip[22] get_user_ip(id,ip,21) for(new i = 1; i < MAX_PLAYERS; i++) { if (equal(ip, xID, 21)) { new name[34] get_user_name(id, name, 33) if (get_cvar_num("amx_showx")) { new rID[1] rID[0] = id set_task(2.0, "msgx", id, rID, 1) } if (get_cvar_num("amx_retryslay")) { new rID[1] rID[0] = get_user_userid(id) // Intarziere slay set_task(5.0, "x_cmd", 77, rID, 1) } break } } return 1; } public client_disconnect(id) { if ((is_user_bot(id))) { return 1; } new ip[22] get_user_ip(id,ip,21) new found = 0; for(new i = 1; i < MAX_PLAYERS; i++) { if (equal(ip, xID, 21)) { // acest jucator a primit deja slay found = 1 break } } if (found == 0) { for(new i = 1; i < MAX_PLAYERS; i++) { if (xID[0] == 0) { // slot gol gasit get_user_ip(id, xID, 21) new aID[1] aID[0] = i set_task( get_cvar_float("amx_retrytime"), "cleanID", (id + MAX_PLAYERS), aID, 1) break } } } return 1; } public cleanID(i[]) { xID[i[0]][0] = 0 } public msgx(xID[]) { new txt[128] get_cvar_string("amx_slaymsg", txt, 127) new playername[34] get_user_name(xID[0], playername, 33) new sec[6] num_to_str(get_cvar_num("amx_retrytime"), sec, 5) set_hudmessage(255, 0, 0, 0.0, 0.86, 1, 6.0, 20.0) show_hudmessage(xID[0], "Veti primi slay, deoarece v-ati reconectat pe server!") client_print(xID[0], print_chat, "Veti primi slay, deoarece v-ati reconectat pe server!") return 1 } public x_cmd(id[]) { new txt[128] get_cvar_string("amx_slaymsg", txt, 127) server_cmd("amx_slay #%d ^"%s^"", id[0], txt) }
- | Afiseaza codul
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team df28cb6d53517e21dbcc30c058238df3.sma(28) : error 048: array dimensions do not match df28cb6d53517e21dbcc30c058238df3.sma(65) : error 048: array dimensions do not match df28cb6d53517e21dbcc30c058238df3.sma(74) : error 033: array must be indexed (variable "xID") df28cb6d53517e21dbcc30c058238df3.sma(75) : error 048: array dimensions do not match 4 Errors. Could not locate output file df28cb6d53517e21dbcc30c058238df3.amx (compile failed).
imi puteti modifica acest plugin va rog? PS: compilez online cu 1.8.2