←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

CoD Nowy
Co jest Żle ??????

Locked

manipers's Photo manipers 12.04.2011

Witam. Robiłem klase która ma Anty-Flasha i wyskoczyły mi 4 Błędy i nie wiem jak je naprawić. Bardzo Proszę o POMOC


Attached File  codclass_luzak.sma   1.1KB   18 downloads
Quote

  • +
  • -
ManiaQ's Photo ManiaQ 12.04.2011

Jakiś dziwny codmod.inc potrzebny wyskakują mi w nim błędy, skompiluj lokalnie z tym plikiem - przy moim jakieś błędy są ;)

Był mały błąd
new g_nMsgScreenFad

Zamiast
new g_nMsgScreenFade


/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <codmod>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>

new g_nMsgScreenFade

new const nazwa[] = "Luzak";
new const opis[] = "Posiada Anty Flash";
new const bronie = 1<<CSW_AUG;
new const zdrowie = 10;
new const kondycja = 10;
new const inteligencja = 0;
new const wytrzymalosc = 5;

new bool:ma_klase[33];

public plugin_init() {
register_plugin(nazwa, "1.0", "manipers");

cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
}

public cod_class_enabled(id)
ma_klase[id] = true;

public cod_class_disabled(id)
ma_klase[id] = false;

public client_PostThink(id)
{
if(!ma_klase[id])
{
return PLUGIN_CONTINUE
}
message_begin( MSG_ONE,g_nMsgScreenFade,{0,0,0},id)
write_short( read_data( 1 ) ) // Duration
write_short( read_data( 2 ) ) // Hold time
write_short( read_data( 3 ) ) // Fade type
write_byte (0) // Red
write_byte (0) // Green
write_byte (0) // Blue
write_byte (0) // Alpha
message_end()
return PLUGIN_HANDLED
}
Quote

manipers's Photo manipers 12.04.2011

THX masz +

Dodano 12 kwiecień 2011 - 18:41:
hmm czemu nie ma Anty Flesha ??
Quote
Locked