←  Problemy z pluginami

AMXX.pl: Support AMX Mod X i SourceMod

»

ActionExp

Zablokowany

  • +
  • -
phoeniX - zdjęcie phoeniX 15.03.2011

Siema mam problem z ActionExp.
Trzymcie tutaj kod sma:

ActionExp(id, ent)
{
new property[5];
GetProperty(ent, 1, property);

if (is_user_alive(id) && !ExpUsed[id])
{
if ( get_user_team ( id ) == 1 )
{
new name[32];
get_user_name(id, name, 31);
server_cmd(id, "dr_addxp %i %i", name, str_to_num(property));
ExpUsed[id] = true;
ColorChat(id, GREEN, "^x03 Dostales^x04 %i Expa^x03!", str_to_num(property));
}

}
else
{
set_hudmessage(111, 49, 152, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
show_hudmessage(id, "Mozna uzyc co: Runde", ExpUsed);
}
}


Każdy pomocny post dostaje karme!
Odpowiedz

  • +
  • -
;(( - zdjęcie ;(( 15.03.2011

Ale w ogóle nie działa czy co ?
Odpowiedz

  • +
  • -
phoeniX - zdjęcie phoeniX 15.03.2011

Nie kompiluje w ogóle wyskakuje:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Argument type mismatch (argument 1) on line 1577 << server_cmd(id, "dr_addxp %i %i", name, str_to_num(property));
Error: Undefined symbol "ColorChat" on line 1579
Warning: Expression has no effect on line 1579
Error: Expected token: ";", but found ")" on line 1579
Error: Invalid expression, assumed zero on line 1579
Error: Too many error messages on one line on line 1579

Compilation aborted.
5 Errors.
Could not locate output file D:\bcm.amx (compile failed).
Użytkownik haga edytował ten post 15.03.2011 15:19
Odpowiedz

mierzwi - zdjęcie mierzwi 15.03.2011

nie masz colorchata, to po 1, bo w bcm go nie ma? po 2:
server_cmd(id, "dr_addxp %i %i", name, str_to_num(property));
%s - tekst %i/%d - liczby ?
i po 3: id w server_cmd ?
Użytkownik funfel edytował ten post 15.03.2011 15:28
Odpowiedz
Zablokowany