#define g_isalive[%1] g_isalive & (1<<%1) #define g_isalive[%1]=1 g_isalive |= (1<<%1) #define g_isalive[%1]=0 g_isalive &= ~(1<<%1) new g_isalive; #include "mt2/events.inl" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Spawn,"player","spawned") RegisterHam(Ham_Killed,"player","killed") }
#if defined _events_included #endinput #endif #define _events_included public spawned(id){ g_isalive[id]=1 } public killed(id,idattacker, shouldgib){ g_isalive[id]=0 }
Welcome to the AMX Mod X 1.76-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team F:\dropbox\My Dropbox\Metin2 Mod\addons\amxmodx\scripting\metin2mod.sma(92) : warning 201: redefinition of constant/macro (symbol "g_isalive[%1]=1") F:\dropbox\My Dropbox\Metin2 Mod\addons\amxmodx\scripting\metin2mod.sma(93) : warning 201: redefinition of constant/macro (symbol "g_isalive[%1]=0") C:\Documents and Settings\Home\Desktop\compiler\compiler\include\mt2/events.inl(7) : error 028: invalid subscript (not an array or too many subscripts): "g_isalive" C:\Documents and Settings\Home\Desktop\compiler\compiler\include\mt2/events.inl(7) : warning 215: expression has no effect C:\Documents and Settings\Home\Desktop\compiler\compiler\include\mt2/events.inl(7) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Home\Desktop\compiler\compiler\include\mt2/events.inl(7) : error 029: invalid expression, assumed zero C:\Documents and Settings\Home\Desktop\compiler\compiler\include\mt2/events.inl(7) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors. Could not locate output file C:\Documents and Settings\Home\Desktop\compiler\compiler\compiled\metin2mod.amx (compile failed). Compilation Time: 0,42 sec
pomóżcie bo zaraz mnie coś strzeli
Użytkownik DarkGL edytował ten post 05.08.2010 19:09