Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Natywy - Nie Komplikuje !


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
2 odpowiedzi w tym temacie

#1 P4nn

    Początkujący

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:13
  • Imię:Krystian
  • Lokalizacja:Bratian
Offline

Napisano 06.02.2012 23:38

Witam,
Mam wgraną komendę /daj i wszystko działa i teraz chce wgrać Monster Mod'a i nie chce skomplkować .sma :(

Mój Kod:
public dmg_exp(id)
{
new min=get_cvar_num("diablo_dmg_exp")
if(min<1) return
new exp=0
while(player_dmg[id]>min)
{
player_dmg[id]-=min
exp++
}
Give_Xp(id,exp)
}
public plugin_natives(){
register_library("DiabloMod_Items");
register_native("diablo_send_user_item", "_diablo_send_user_item");
register_native("diablo_get_user_item", "_diablo_get_user_item");

}
public _diablo_get_user_item(plugin, params){
if(params != 1)
return 0;
new id = get_param(1);
if(!is_user_connected(id))
return 0;
return player_item_id[id];
}
public _diablo_send_user_item(plugin, params){
if(params != 2)
return 0;
new id = get_param(1);
if(!is_user_connected(id))
return 0
new id2 = get_param(2);
if(!is_user_connected(id2))
return 0
if(player_item_id[id] == 0)
return 0;

dropitem(id2);
award_item(id2, player_item_id[id]);

item_boosted[id2] = item_boosted[id]
item_durability[id2] = item_durability[id]
jumps[id2] = jumps[id]
gravitytimer[id2] = gravitytimer[id]
player_b_vampire[id2] = player_b_vampire[id] //Vampyric damage
player_b_damage[id2] = player_b_damage[id] //Bonus damage
player_b_money[id2] = player_b_money[id] //Money bonus
player_b_gravity[id2] = player_b_gravity[id] //Gravity bonus : 1 = best
player_b_inv[id2] = player_b_inv[id] //Invisibility bonus
player_b_grenade[id2] = player_b_grenade[id] //Grenade bonus = 1/chance to kill
player_b_reduceH[id2] = player_b_reduceH[id] //Reduces player health each round start
player_b_theif[id2] = player_b_theif[id] //Amount of money to steal
player_b_respawn[id2] = player_b_respawn[id] //Chance to respawn upon death
player_b_explode[id2] = player_b_explode[id] //Radius to explode upon death
player_b_heal[id2] = player_b_heal[id] //Ammount of hp to heal each 5 second
player_b_blind[id2] = player_b_blind[id] //Chance 1/Value to blind the enemy
player_b_fireshield[id2] = player_b_fireshield[id] //Protects against explode and grenade bonus
player_b_meekstone[id2] = player_b_meekstone[id] //Ability to lay a fake c4 and detonate
player_b_teamheal[id2] = player_b_teamheal[id] //How many hp to heal when shooting a teammate
player_b_redirect[id2] = player_b_redirect[id] //How much damage will the player redirect
player_b_fireball[id2] = player_b_fireball[id] //Ability to shot off a fireball value = radius *
player_b_ghost[id2] = player_b_ghost[id] //Ability to walk through walls
player_b_eye[id2] = player_b_eye[id] //Ability to snarkattack
player_b_blink[id2] = player_b_blink[id] //Abiliy to use railgun
player_b_windwalk[id2] = player_b_windwalk[id] //Ability to windwalk
player_b_usingwind[id2] = player_b_usingwind[id] //Is player using windwalk
player_b_froglegs[id2] = player_b_froglegs[id]
player_b_silent[id2] = player_b_silent[id]
player_b_dagon[id2] = player_b_dagon[id] //Abliity to nuke opponents
player_b_sniper[id2] = player_b_sniper[id] //Ability to kill faster with scout
player_b_jumpx[id2] = player_b_jumpx[id]
player_b_smokehit[id2] = player_b_smokehit[id]
player_b_extrastats[id2] = player_b_extrastats[id]
player_b_firetotem[id2] =player_b_firetotem[id]
player_b_hook[id2] = player_b_hook[id]
player_b_darksteel[id2] = player_b_darksteel[id]
player_b_illusionist[id2] = player_b_illusionist[id]
player_b_mine[id2] = player_b_mine[id]
wear_sun[id2] = wear_sun[id]
player_sword[id2] = player_sword[id]
player_ultra_armor_left[id2]=player_ultra_armor_left[id]
player_ultra_armor[id2]=player_ultra_armor[id]

dropitem(id);

return 1;
}
public plugin_natives()
{
register_native("db_get_user_xp", "native_get_user_xp", 1)
register_native("db_set_user_xp", "native_set_user_xp", 1)
register_native("db_get_user_level", "native_get_user_level", 1)
register_native("db_set_user_level", "native_set_user_level", 1)
register_native("db_get_user_class", "native_get_user_class", 1)
register_native("db_set_user_class", "native_set_user_class", 1)
register_native("db_get_user_item", "native_get_user_item", 1)
register_native("db_set_user_item", "native_set_user_item", 1)
}
public native_get_user_xp(id)
{
return player_xp[id]
}
public native_set_user_xp(id, amount)
{
player_xp[id]=amount
if (player_xp[id] > LevelXP[player_lvl[id]])
{
player_lvl[id]+=1
player_point[id]+=2
set_hudmessage(60, 200, 25, -1.0, 0.25, 0, 1.0, 2.0, 0.1, 0.2, 2)
show_hudmessage(id, "Awansowales do poziomu %i", player_lvl[id])
savexpcom(id)
player_class_lvl[id][player_class[id]]=player_lvl[id]
}
if (player_xp[id] < LevelXP[player_lvl[id]-1])
{
player_lvl[id]-=1
player_point[id]-=2
set_hudmessage(60, 200, 25, -1.0, 0.25, 0, 1.0, 2.0, 0.1, 0.2, 2)
show_hudmessage(id, "Spadles do poziomu %i", player_lvl[id])
savexpcom(id)
player_class_lvl[id][player_class[id]]=player_lvl[id]
}
write_hud(id)
}
public native_get_user_level(id)
{
return player_lvl[id]
}
public native_set_user_level(id, amount)
{
native_set_user_xp(id, LevelXP[amount])
}
public native_get_user_class(id)
{
return player_class[id]
}
public native_set_user_class(id, class)
{
g_haskit[id] = 0
player_class[id] = class
LoadXP(id, player_class[id])
CurWeapon(id)
give_knife(id)
}
public native_get_user_item(id)
{
return player_item_id[id]
}
public native_set_user_item(id, item)
{
player_item_id[id] = 0
player_item_name[id] = "None"
player_b_gamble[id] = 0 //Because gamble uses reset skills
if (player_b_extrastats[id] > 0)
{
SubtractStats(id,player_b_extrastats[id])
}
if(player_ring[id]>0) SubtractRing(id)
player_ring[id]=0
reset_item_skills(id)
set_task(3.0,"changeskin_id_1",id)
write_hud(id)
set_renderchange(id)
set_gravitychange(id)
if (player_b_oldsen[id] > 0.0)
{
client_cmd(id,"sensitivity %f",player_b_oldsen[id])
player_b_oldsen[id] = 0.0
}
award_item(id, item)
}


Błąd:

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

dbmod_5.9l.sma(2002) : warning 217: loose indentation
dbmod_5.9l.sma(2006) : warning 217: loose indentation
dbmod_5.9l.sma(8384) : error 021: symbol already defined: "plugin_natives"

1 Error.
Could not locate output file dbmod_5.9l.amxx (compile failed).
--------------------------------

Co jest nie tak?
Proszę o odpowiedź !
  • +
  • -
  • 0

#2 Ojciec Dyrektor

    papa smerf.

  • Przyjaciel

Reputacja: 476
Wszechobecny

  • Postów:3035
  • Imię:Paweł
  • Lokalizacja:Rabka-Zdrój
Offline

Napisano 06.02.2012 23:41

Automatyczna wiadomość


Ten temat został przeniesiony z forum:
Mody > Diablo Mod > Problemy
do
Scripting AMXX > Prośby o kompilacje pluginów / Problemy z kompilacją


  • +
  • -
  • 0

#3 P4nn

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:13
  • Imię:Krystian
  • Lokalizacja:Bratian
Offline

Napisano 06.02.2012 23:54

dzięki za przeniesienie.
  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych