Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(38) : error 017: undefined symbol "newFrags"
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(38) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(39) : error 017: undefined symbol "newFrags2"
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(39) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(66) : error 017: undefined symbol "frags2"
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(70) : error 017: undefined symbol "frags"
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(82) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(83) : error 017: undefined symbol "frags2"
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(83) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(83) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(83) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(83) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpRkQRMJ.sma(83) : fatal error 107: too many error messages on one line
Compilation aborted.
11 Errors.
wiem ze zle zakodowalem ale naprawdę nie mam pojecia jak to naprawic
juz 3 bledy poprawilem i teraz wyglada tak : plugin :
#include <amxmod>
#include <amxmisc>
#include <fun>
public plugin_init() {
register_plugin("Dawanie Fragow","1","ghn")
register_concmd("say","handle_say",ADMIN_USER)
register_concmd("say_team","handle_say",ADMIN_USER)
register_cvar("set_user_frags","1",0)
register_cvar("set_user_deaths","1",0)
register_cvar("set_user_score","1",0)
return PLUGIN_CONTINUE
}
public handle_say(id) {
new said[31]
new cmd[10]
new target[9]
new amount[7]
new rest[5]
read_args(said, 30)
replace(said, 30, "^"", "")
parse(said, cmd,9, target,8, amount,6, rest,4)
new player = cmd_target(id,target,8)
new name[33]
new name2[33]
get_user_name(id,name,32)
get_user_name(player,name2,32)
new team[32]
new team2[32]
get_user_team(id,team,32)
get_user_team(player,team2,32)
if (equal(cmd, "/dajfragi", 9)) {
new Frags = set_user_frags(id)
new Frags2 = set_user_frags(player)
new frag = str_to_num(amount)
new bool:NoCantDo
NoCantDo=false
if (!is_user_alive(id)) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz dac fragow gdy niezyjesz")
NoCantDo=true
}
}
if (!is_user_alive(player)) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz dac fragow dla niezywych")
NoCantDo=true
}
}
if (equal(name, name2)) {
client_print(id,print_center,"Nie mozesz dac sobie fragow")
NoCantDo=true
}
if (!equal(team, team2)) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz dac Fragow dla przeciwnej druzyny")
NoCantDo=true
}
}
if ((frags2 + frag) > 16000) {
client_print(id,print_center,"%s nie moze przyjac tylu fragow")
NoCantDo=true
}
if (frags < frag) {
client_print(id,print_center,"Nie masz tylu Fragow")
NoCantDo=true
}
if (frag < 0) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz Ukrasc %s's frags",name2)
NoCantDo=true
}
}
if (!NoCantDo) {
set_user_frags(id, frag - frag,1)
set_user_frags(player, frags2 + frag,1)
client_print(0,print_chat,"[AMX] %s dal %i $ dla %s. Podziekuj mu",name,frag,name2)
engclient_cmd(id,"say Dziekuje ci %s",name)
}
}
return PLUGIN_CONTINUE
}
a z komplikatora :
home/groups/amxmodx/tmp3/phpShinB2.sma(38) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpShinB2.sma(39) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpShinB2.sma(66) : error 017: undefined symbol "frags2"
/home/groups/amxmodx/tmp3/phpShinB2.sma(70) : error 017: undefined symbol "frags"
/home/groups/amxmodx/tmp3/phpShinB2.sma(82) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpShinB2.sma(83) : error 017: undefined symbol "frags2"
/home/groups/amxmodx/tmp3/phpShinB2.sma(83) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpShinB2.sma(83) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpShinB2.sma(83) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/phpShinB2.sma(83) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpShinB2.sma(83) : fatal error 107: too many error messages on one line
Compilation aborted.
9 Errors.
Done.
ok sory za ewentualny spam ... ;/ ale zalezy mi na tym pluginie ... i juz zrobilem do 4 bledow tylko
plugin :
#include <amxmod>
#include <amxmisc>
#include <fun>
public plugin_init() {
register_plugin("Dawanie Fragow","1","ghn")
register_concmd("say","handle_say",ADMIN_USER)
register_concmd("say_team","handle_say",ADMIN_USER)
register_cvar("set_user_frags","1",0)
register_cvar("set_user_deaths","1",0)
register_cvar("set_user_score","1",0)
return PLUGIN_CONTINUE
}
public handle_say(id) {
new said[31]
new cmd[10]
new target[9]
new amount[7]
new rest[5]
read_args(said, 30)
replace(said, 30, "^"", "")
parse(said, cmd,9, target,8, amount,6, rest,4)
new player = cmd_target(id,target,8)
new name[33]
new name2[33]
get_user_name(id,name,32)
get_user_name(player,name2,32)
new team[32]
new team2[32]
get_user_team(id,team,32)
get_user_team(player,team2,32)
if (equal(cmd, "/dajfragi", 9)) {
new frags = set_user_frags(id)
new frags2 = set_user_frags(player)
new frag = str_to_num(amount)
new bool:NoCantDo
NoCantDo=false
if (!is_user_alive(id)) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz dac fragow gdy niezyjesz")
NoCantDo=true
}
}
if (!is_user_alive(player)) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz dac fragow dla niezywych")
NoCantDo=true
}
}
if (equal(name, name2)) {
client_print(id,print_center,"Nie mozesz dac sobie fragow")
NoCantDo=true
}
if (!equal(team, team2)) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz dac Fragow dla przeciwnej druzyny")
NoCantDo=true
}
}
if ((frags2 + frag) > 16000) {
client_print(id,print_center,"%s nie moze przyjac tylu fragow")
NoCantDo=true
}
if (frags < frag) {
client_print(id,print_center,"Nie masz tylu Fragow")
NoCantDo=true
}
if (frag < 0) {
if (get_cvar_num("set_user_frags")==0) {
client_print(id,print_center,"Nie mozesz Ukrasc %s's frags",name2)
NoCantDo=true
}
}
if (!NoCantDo) {
set_user_frags(id, frag - frag,1)
set_user_frags(player, frags2 + frag,1)
client_print(0,print_chat,"[AMX] %s dal %i $ dla %s. Podziekuj mu",name,frag,name2)
engclient_cmd(id,"say Dziekuje ci %s",name)
}
}
return PLUGIN_CONTINUE
}
kompilator :
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/phpZlmcat.sma(38) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpZlmcat.sma(39) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpZlmcat.sma(82) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/phpZlmcat.sma(83) : error 088: number of arguments does not match definition
4 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpZlmcat.amx (compile failed).
839159 successful compiles to date.
604367 failed compiles to date.
Old compiler: 101980 compiles before decommission.
This tool by: David "BAILOPAN" Anderson.
Użytkownik Szary322 edytował ten post 03.02.2010 20:17