Skocz do zawartości

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

Saving Problem.


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

#21 supertaranta

    Pomocny

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:55
Offline

Napisano 07.05.2009 22:01

this is what i found
	register_clcmd("say /loadxp","LoadXP")


public LoadXP(id){ 
    new playerid[35];      
    get_user_authid(id,playerid,34); 

    new vaultkey[64],vaultdata[256] 
    format(vaultkey,63,"%s-%d-Dbmod",playerid,player_class[id]) 
    
    client_print(id,print_console,"load_func_key %s",vaultkey) 

    nvault_get(g_vault,vaultkey,vaultdata,255) 

    client_print(id,print_console,"load_func_data %s",vaultdata) 
    
    replace_all(vaultdata, 255, "#", " ") 
    
    new playerclass [33],playerxp[33],playerlvl[33],playerintelligence[33],playerstrength[33],playerpoint[33],playeragility[33],playerdextery[33] 
    
    parse(vaultdata, playerclass, 32, playerxp, 32, playerlvl, 32, playerintelligence, 32, playerstrength, 32, playerpoint, 32, playeragility, 32, playerdextery, 32) 
    
    player_class[id] = str_to_num(playerclass) 
    player_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />[id] = str_to_num(playerxp) 
    player_lvl[id] = str_to_num(playerlvl) 
    player_intelligence[id] = str_to_num(playerintelligence) 
    player_strength[id] = str_to_num(playerstrength) 
    player_point[id] = str_to_num(playerpoint) 
    player_agility[id] = str_to_num(playeragility) 
    player_dextery[id] = str_to_num(playerdextery) 
    BoostRing(id) 
    BoostStats(id,player_b_extrastats[id]) 
    
    player_damreduction[id] = (47.3057*(1.0-floatpower( 2.7182, -0.06798*float(player_agility[id])))/100) 
    
    give_knife(id) 
    
    return PLUGIN_HANDLED 
}



public client_connect(id)
{
//	reset_item_skills(id)  - nie tutaj bo nie loaduje poziomow <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/blink.gif' class='bbc_emoticon' alt='O.o' />
	flashbattery[id] = MAX_FLASH
	player_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />[id] = 0		
	player_lvl[id] = 1		
	player_point[id] = 0	
	player_item_id[id] = 0			
	player_agility[id] = 0
	player_strength[id] = 0
	player_intelligence[id] = 0
	player_dextery[id] = 0
	player_b_oldsen[id] = 0.0
	player_class[id] = 0
	player_damreduction[id] = 0.0
	last_update_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />[id] = -1
	player_item_name[id] = "None"
	if(get_cvar_num("SaveXP") == 1) {
	LoadXP(id)
	}


Those are the only things with loadxp =/.
  • +
  • -
  • 0

#22 Miczu

    Godlike

  • Przyjaciel

Reputacja: 657
Wszechmogący

  • Postów:2 862
Offline

Napisano 07.05.2009 22:06

Try write /loadxp in chat while playing, mayby it will even load some stats if not, copy generated text from console.


There should be call for load function from, function that is handling the chosing a class, copy it (probably more then 1 function do it).
  • +
  • -
  • 0

#23 supertaranta

    Pomocny

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:55
Offline

Napisano 07.05.2009 22:09

Oh wow ><. im a dumb ass. lol im so sorry, iv ben typing /load instead of /loadxp. loads now. thanks. is it possible to have it load from joining game?
  • +
  • -
  • 0

#24 Miczu

    Godlike

  • Przyjaciel

Reputacja: 657
Wszechmogący

  • Postów:2 862
Offline

Napisano 07.05.2009 22:14

is it possible to have it load from joining game?


No becouse after connect you don't have any class and there isn't anything to load, you have to chose class and then use load, that's why i asked for the chose class function from your code...
  • +
  • -
  • 0

#25 supertaranta

    Pomocny

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:55
Offline

Napisano 08.05.2009 02:25

Oh alright, hmm would it be possible for it to chose your last class that it played for and load it from there? Its fine if its not possible hehe, just wondering. =)
  • +
  • -
  • 0

#26 Miczu

    Godlike

  • Przyjaciel

Reputacja: 657
Wszechmogący

  • Postów:2 862
Offline

Napisano 08.05.2009 08:46

chose your last class that it played

Do you want to make an extra vaulout file to save what class was last played? Don't think you do...
  • +
  • -
  • 0

#27 supertaranta

    Pomocny

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:55
Offline

Napisano 08.05.2009 11:33

Yea i dont >< lol. alright man thanks for everything. if i need help =) hehe il post. take care.
  • +
  • -
  • 0




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

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