Доброго времени суток.
Решил переделать под себя худ, вырезал не нужное и вызникла ошибка. Ошибка в строке 38
Сам не могу понять в чём дело, надеюсь на вас.
Код:
public Info()
{
static Players[32], Count, buffer[192], len
new id, id2, Name2[32], live, osef[8]
get_players(Players, Count, "ch")
for(new i = 0; i < Count; i++)
{
id = Players[i]
live = is_user_alive(id)
id2 = pev(id, pev_iuser2)
get_user_name(id2, Name2, 31)
g_oldrank[id] = get_user_stats(id, osef, osef)
if(!live)
{
if(id2 > 0)
{
if(PlayerLevel[id2] < 21)
{
}
}
else
{
if(PlayerLevel[id] < 21)
{
len = format(buffer, charsmax(buffer) - len, "%L: %L", LANG_PLAYER,"ZVANIE", LANG_PLAYER,CLASSES[PlayerLevel[id]])
len += format(buffer[len], charsmax(buffer) - len, "^n%L: %d",LANG_PLAYER,"PL_XP",PlayerXP[id])
len += format(buffer[len], charsmax(buffer) - len, "^n%L: %d", LANG_PLAYER,"RANK", g_oldrank[id])
}
else
{
len = format(buffer, charsmax(buffer) - len, "%L: %L", LANG_PLAYER,"ZVANIE", LANG_PLAYER,CLASSES[PlayerLevel[id]])
len += format(buffer[len], charsmax(buffer) - len, "^n%L",LANG_PLAYER,"PL_MAX")
len += format(buffer[len], charsmax(buffer) - len, "^n%L: %d", LANG_PLAYER,"RANK", g_oldrank[id])
}
}
else
{
if((PlayerLevel[id] < 21) && live)
{
len = format(buffer, charsmax(buffer), "%L", LANG_PLAYER,CLASSES[PlayerLevel[id]])
len += format(buffer[len], charsmax(buffer) - len, "^n%L: %d %L %d", LANG_PLAYER,"PL_XP",PlayerXP[id], LANG_PLAYER,"IZ", LEVELS[PlayerLevel[id]+1])
len += format(buffer[len], charsmax(buffer) - len, "^n%L: %d %L %d", LANG_PLAYER,"RANK", g_oldrank[id], LANG_PLAYER,"IZ", maxrank)
}
else
{
len = format(buffer, charsmax(buffer), "%L",LANG_PLAYER,CLASSES[PlayerLevel[id]])
len += format(buffer[len], charsmax(buffer) - len, "^n%L: %L",LANG_PLAYER,"PL_XP", LANG_PLAYER,"PL_MAX")
len += format(buffer[len], charsmax(buffer) - len, "^n%L: %d %L %d", LANG_PLAYER,"RANK", g_oldrank[id], LANG_PLAYER,"IZ", maxrank)
}
}
}
set_hudmessage(255, 255, 255, 0.01, 0.19, 0, 0.0, HUD_UPD, _, _, -1)
ShowSyncHudMsg(id, g_MsgHud, "%s", buffer)
}
return PLUGIN_CONTINUE
}
Отредактировал: mOdest, - 11.11.2016, 13:43