EXP:
register_concmd("amx_givexp","give_xP",ADMIN_KICK,"<Nick> <ilosc>"); public give_xP(id,level, cid) { new target[32], ilosc[32] read_argv(1, target, 31) read_argv(2, ilosc, 31) new player = cmd_target(id, target, CMDTARGET_ALLOW_SELF) new amount = str_to_num Give_xP(player,amount) }
Kod mam od kolegi.
jednak blad mi wywala przy linijce:
new amount = str_to_num
Error: Syntax error in the expression, or invalid function call on line 8266 (Linijka 8266 to: >> new amount = str_to_num <<)
Error: Number of arguments does not match definition on line 8267 (Linijka 8267 to: >> Give_xP(player,amount) <<)
Nie mam zielonego pojecia o co chodzi xD
moglby ktos pomoc ?
p.s. uzywam 5.8a
Użytkownik se7en edytował ten post 23.01.2010 13:10