Merhaba arkadaş plugin yüklemek istediğimde şu hatayı alıyorum;
AMX Mod X Compiler 1.8.3-dev+5079
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
ZpWinFrags3.sma(7) : error 021: symbol already defined: "MaxClients"
ZpWinFrags3.sma(13) : error 022: must be lvalue (non-constant)
2 Errors.
Could not locate output file ZpWinFrags3.amx (compile failed).
plugin ise;
#include <amxmodx>
#include <fakemeta>
native zp_core_is_zombie(id)
native zp_core_get_zombie_count()
native zp_core_get_human_count()
new MaxClients
public plugin_init()
{
register_plugin("ZP Win Frags", "0.0.2", "wbyokomo")
register_logevent("OnEndRound", 2, "1=Round_End")
MaxClients = get_maxplayers()
}
public OnEndRound()
{
if(!zp_core_get_zombie_count())
{
//human win
new j
for(j=1;j<=MaxClients;j++)
{
if(is_user_alive(j) && !zp_core_is_zombie(j)) set_pev(j, pev_frags, pev(j, pev_frags)+3.0);
}
}
else if(!zp_core_get_human_count())
{
//zombie win
new j
for(j=1;j<=MaxClients;j++)
{
if(is_user_alive(j) && zp_core_is_zombie(j)) set_pev(j, pev_frags, pev(j, pev_frags)+3.0);
}
}
else
{
//draw, so who will get the frags?
}
}
Plugin yüklerken kompile hatası
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 3
- Kayıt: Prş Mar 29, 2018 12:00 am