Skocz do zawartości

AMXX ex_interp


EMO
# CSH External VIP Project

Masz dosyć problemów z czynnikiem zaufania w CS2 lub notorycznymi banami?

Sprawdź CSH External VIP Project.


Więcej informacji  

Rekomendowane odpowiedzi

#include <amxmodx>



#define PLUGIN "Interp Check"

#define VERSION "1.0"

#define AUTHOR "WWW.CS-SCRIPTS.PL"





new Float:GOOD_INTERP = 0.01;



public plugin_init()

register_plugin(PLUGIN, VERSION, AUTHOR);



public client_authorized(id)

query_client_cvar(id , "ex_interp", "interp_check");



public interp_check(id, const szCvar, const szValue[])

{

new Float:f_interp = str_to_float(szValue);

if(f_interp != GOOD_INTERP )

{

new array[7];

array[0] = id;

formatex(array[1], sizeof array - 1, szValue);

set_task(15.0, "player_kick", _, array, 7)

}

}



public player_kick(array[7])

{

new id = array[0];



if(!is_user_connected(id))

return;



new interp[6];

formatex(interp, sizeof interp - 1, array[1])

new Float:f_interp = str_to_float(interp);

new name[32];

get_user_name(id, name, 31)

client_print(0, print_chat, "Gracz %s ma zly interp (%f)", name, f_interp)

}
Odnośnik do komentarza

No ok zrobiłem tak i po wygenerowaniu mi pisało:

 

Welcome to the AMX Mod X 1.8.1-300 Compiler.

Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

 

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(1) : error 055: start of function body without function header

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(7) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(9) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(11) : error 029: invalid expression, assumed zero

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(14) : error 029: invalid expression, assumed zero

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(17) : error 029: invalid expression, assumed zero

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(19) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(20) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(22) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(24) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(24) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(26) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(29) : error 029: invalid expression, assumed zero

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(31) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(33) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(34) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(36) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(37) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(37) : error 021: symbol already defined: "formatex"

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(37) : error 010: invalid function or declaration

/home/groups/amxmodx/tmp3/phpdi8tnU.sma(37) : fatal error 107: too many error messages on one line

 

Compilation aborted.

21 Errors.

Done.

Nie wiem czy to jest dobrze czy żle

Odnośnik do komentarza
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

  Tagi

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Regulamin. Polityka prywatności