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

zapisz i wczytaj Nvault


  • Zamknięty Temat jest zamknięty
7 odpowiedzi w tym temacie

#1 Jak się nazwać

    Wszechmogący

  • Power User

Reputacja: 170
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 30.05.2011 20:14

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

Warning: Symbol is assigned a value that is never used: "monety" on line 308
Error: Input line too long (after substitutions) on line 413
Error: Input line too long (after substitutions) on line 428
Error: Input line too long (after substitutions) on line 435
Error: Invalid expression, assumed zero on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Error: Invalid expression, assumed zero on line 436
Warning: Expression has no effect on line 436
Warning: Expression has no effect on line 436
Error: Undefined symbol "q" on line 436
Error: Too many error messages on one line on line 436

Compilation aborted.
7 Errors.
Could not locate output file D:\Program Files\AMX Mod X\questy.amx (compile failed).


public ZapiszQuest(id)
{
	new name[35]
	get_user_name(id,name,34)
	
	new vaultkey [ 512 ], vaultdata [ 256 ]
	
	format(vaultkey,511,"%s-Questy",name);
	format ( vaultdata , 255 , "#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i" , quest1[id], quest2[id], quest3[id], quest4[id], quest5[id], quest6[id], quest7[id], quest8[id], quest9[id], quest10[id], quest11[id], quest12[id], quest13[id], quest14[id], quest15[id], quest16[id], ma_quest1[id], ma_quest2[id], ma_quest3[id], ma_quest4[id], ma_quest5[id], ma_quest6[id], ma_quest7[id], ma_quest8[id], ma_quest9[id], ma_quest10[id], ma_quest11[id], ma_quest12[id], ma_quest13[id], ma_quest14[id], ma_quest15[id], ma_quest16[id])
	
	nvault_set ( g_vault , vaultkey , vaultdata )
	return PLUGIN_CONTINUE
}

public WczytajQuest(id)
{
	new name[35]
	new vaultdata[256];
	new vaultkey[256];
	get_user_name(id,name,34)
	
	format(vaultkey,255,"%s-Questy",name);
	format ( vaultdata , 255 , "#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i" , quest1[id], quest2[id], quest3[id], quest4[id], quest5[id], quest6[id], quest7[id], quest8[id], quest9[id], quest10[id], quest11[id], quest12[id], quest13[id], quest14[id], quest15[id], quest16[id], ma_quest1[id], ma_quest2[id], ma_quest3[id], ma_quest4[id], ma_quest5[id], ma_quest6[id], ma_quest7[id], ma_quest8[id], ma_quest9[id], ma_quest10[id], ma_quest11[id], ma_quest12[id], ma_quest13[id], ma_quest14[id], ma_quest15[id], ma_quest16[id])
	nvault_get ( g_vault , vaultkey , vaultdata , 255 )
	
	replace_all ( vaultdata , 255 , "#" , " " )
	
	new quest[36][32]
	parse ( vaultdata , quest[0], 31, quest[1], 31, quest[2], 31, quest[3], 31, quest[4], 31, quest[5], 31, quest[6], 31, quest[6], 31, quest[7], 31, quest[8], 31, quest[9], 31, quest[10], 31, quest[11], 31, quest[12], 31, , quest[13], 31, quest[14], 31, quest[15], 31, quest[16], 31, quest[17], 31, quest[18], 31, quest[19], 31, quest[20], 31, quest[21], 31, quest[22], 31, quest[23], 31, quest[24], 31, quest[25], 31, quest[26], 31, quest[27], 31, quest[28], 31, quest[29], 31, quest[30], 31, , quest[31], 31, quest[32], 31, quest[33], 31, quest[34], 31)
	quest1[id] = str_to_num (quest[0])
	quest2[id] = str_to_num (quest[1])
	quest3[id] = str_to_num (quest[2])
	quest4[id] = str_to_num (quest[3])
	quest5[id] = str_to_num (quest[4])
	quest6[id] = str_to_num (quest[5])
	quest7[id] = str_to_num (quest[6])
	quest8[id] = str_to_num (quest[7])
	quest9[id] = str_to_num (quest[8])
	quest10[id] = str_to_num (quest[9])
	quest11[id] = str_to_num (quest[10])
	quest12[id] = str_to_num (quest[11])
	quest13[id] = str_to_num (quest[12])
	quest14[id] = str_to_num (quest[13])
	quest15[id] = str_to_num (quest[14])
	quest16[id] = str_to_num (quest[15])
	ma_quest1[id] = str_to_num (quest[16])
	ma_quest2[id] = str_to_num (quest[17])
	ma_quest3[id] = str_to_num (quest[18])
	ma_quest4[id] = str_to_num (quest[19])
	ma_quest5[id] = str_to_num (quest[20])
	ma_quest6[id] = str_to_num (quest[21])
	ma_quest7[id] = str_to_num (quest[22])
	ma_quest8[id] = str_to_num (quest[23])
	ma_quest9[id] = str_to_num (quest[24])
	ma_quest10[id] = str_to_num (quest[25])
	ma_quest11[id] = str_to_num (quest[26])
	ma_quest12[id] = str_to_num (quest[27])
	ma_quest13[id] = str_to_num (quest[28])
	ma_quest14[id] = str_to_num (quest[29])
	ma_quest15[id] = str_to_num (quest[30])
	ma_quest16[id] = str_to_num (quest[31])
	
	return PLUGIN_CONTINUE
}


Pomoże ktoś?
  • +
  • -
  • 1
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#2 Goliath

    Godlike

  • Przyjaciel

Reputacja: 1227
Godlike

  • Postów:2334
  • GG:
  • Steam:steam
  • Imię:Maciej
  • Lokalizacja:Mońki
Offline

Napisano 30.05.2011 20:18

Error: Input line too long (after substitutions) on line 413

Tu masz odpowiedź. Linie, w których formatujesz stringi vaultdata są za długie. Rozłóż je na kilka mniejszych.
  • +
  • -
  • 2

#3 G[o]Q

    I'm G[o]Q

  • Przyjaciel

Reputacja: 1339
Godlike

  • Postów:3556
  • Steam:steam
  • Imię:Krzysiek
  • Lokalizacja:C: / program Files / Valve / Cstrike / G[o]Q.dem
Offline

Napisano 30.05.2011 20:27

nie wiem czy wiesz ale programowanie jest juz rozwiniete na takim etapie ze istnieja konstrukcje zwane pętlami
  • +
  • -
  • 0
Manual ponad wszystko, konsola ponad manual :D :&

Chcesz wysłać do mnie PW ? użyj nazwy GoQ zamiast G[o]Q
Chcesz Kupić moduł płatności via Pukawka,Tserwery, Gamesol, Zabijaka do mojego sklepu? napisz PW cena to tylko 10 zł/sztuka

GG:6022845 (nie pomagam za free osobom ponizej rangi MoD) :D

#4 Jak się nazwać

    Wszechmogący

  • Autor tematu
  • Power User

Reputacja: 170
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 30.05.2011 21:11

czyli ma być np tak: ??
format ( vaultdata , 255 , "#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i" , quest1[id],
 quest2[id], quest3[id], quest4[id], quest5[id], quest6[id], quest7[id],
 quest8[id], quest9[id], quest10[id], quest11[id], quest12[id],
 quest13[id], quest14[id], quest15[id], quest16[id], ma_quest1[id],
 ma_quest2[id], ma_quest3[id], ma_quest4[id], ma_quest5[id],
 ma_quest6[id], ma_quest7[id], ma_quest8[id], ma_quest9[id],
 ma_quest10[id], ma_quest11[id], ma_quest12[id], ma_quest13[id],
 ma_quest14[id], ma_quest15[id], ma_quest16[id])

Użytkownik Jak się nazwać edytował ten post 30.05.2011 21:14

  • +
  • -
  • 1
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#5 Nomaf

    Wszechpomocny

  • Użytkownik

Reputacja: 155
Profesjonalista

  • Postów:344
  • GG:
  • Imię:Mateusz
  • Lokalizacja:Polska
Offline

Napisano 30.05.2011 21:32

Tak.
  • +
  • -
  • 0

#6 Jak się nazwać

    Wszechmogący

  • Autor tematu
  • Power User

Reputacja: 170
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 31.05.2011 12:50

Jeszcze jedno. sprawdzi ktoś czy są wszystki%i itp oraz 1 błąd.

Error: Array index out of bounds (variable "quest") on line 437

public ZapiszQuest(id)
{
	new name[35]
	get_user_name(id,name,34)
	
	new vaultkey [ 512 ], vaultdata [ 256 ]
	
	format(vaultkey,511,"%s-Questy",name);
	format ( vaultdata , 255 , "#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i" , quest1[id], quest2[id], quest3[id], quest4[id], quest5[id], quest6[id], quest7[id], quest8[id], quest9[id], quest10[id], quest11[id], quest12[id], quest13[id], quest14[id], quest15[id], quest16[id], quest17[id], quest18[id],
	ma_quest1[id], ma_quest2[id], ma_quest3[id], ma_quest4[id], ma_quest5[id], ma_quest6[id], ma_quest7[id], ma_quest8[id], ma_quest9[id], ma_quest10[id], ma_quest11[id], ma_quest12[id], ma_quest13[id], ma_quest14[id], ma_quest15[id], ma_quest16[id], ma_quest17[id], ma_quest18[id])
	
	nvault_set ( g_vault , vaultkey , vaultdata )
	return PLUGIN_CONTINUE
}

public WczytajQuest(id)
{
	new name[35]
	new vaultdata[256];
	new vaultkey[256];
	get_user_name(id,name,34)
	
	format(vaultkey,255,"%s-Questy",name);
	format ( vaultdata , 255 , "#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i#%i" , quest1[id], quest2[id], quest3[id], quest4[id], quest5[id], quest6[id], quest7[id], quest8[id], quest9[id], quest10[id],
	quest11[id], quest12[id], quest13[id], quest14[id], quest15[id], quest16[id], quest17[id], quest18[id], ma_quest1[id], ma_quest2[id], ma_quest3[id], ma_quest4[id], ma_quest5[id], ma_quest6[id], ma_quest7[id], ma_quest8[id], ma_quest9[id], ma_quest10[id], ma_quest11[id], ma_quest12[id], ma_quest13[id], ma_quest14[id], ma_quest15[id], ma_quest16[id], ma_quest17[id], ma_quest18[id])
	nvault_get ( g_vault , vaultkey , vaultdata , 255 )
	
	replace_all ( vaultdata , 255 , "#" , " " )
	
	new quest[36][32]
	parse(vaultdata, quest[0], 31, quest[1], 31, quest[2], 31, quest[3], 31, quest[4], 31, quest[5], 31, quest[6], 31, quest[7], 31, quest[8], 31, quest[9], 31, quest[10], 31, quest[11], 31, quest[12], 31, quest[13], 31, quest[14], 31, quest[15], 31, quest[16], 31, quest[17], 31, quest[18], 31,
	quest[19], 31, quest[20], 31, quest[21], 31, quest[22], 31, quest[23], 31, quest[24], 31, quest[25], 31, quest[26], 31, quest[27], 31, quest[28], 31, quest[29], 31, quest[30], 31, quest[31], 31, quest[32], 31, quest[33], 31, quest[34], 31, quest[35], 31, quest[36], 31);
	quest1[id] = str_to_num (quest[0])
	quest2[id] = str_to_num (quest[1])
	quest3[id] = str_to_num (quest[2])
	quest4[id] = str_to_num (quest[3])
	quest5[id] = str_to_num (quest[4])
	quest6[id] = str_to_num (quest[5])
	quest7[id] = str_to_num (quest[6])
	quest8[id] = str_to_num (quest[7])
	quest9[id] = str_to_num (quest[8])
	quest10[id] = str_to_num (quest[9])
	quest11[id] = str_to_num (quest[10])
	quest12[id] = str_to_num (quest[11])
	quest13[id] = str_to_num (quest[12])
	quest14[id] = str_to_num (quest[13])
	quest15[id] = str_to_num (quest[14])
	quest16[id] = str_to_num (quest[15])
	quest17[id] = str_to_num (quest[16])
	quest18[id] = str_to_num (quest[17])
	ma_quest1[id] = str_to_num (quest[18])
	ma_quest2[id] = str_to_num (quest[19])
	ma_quest3[id] = str_to_num (quest[20])
	ma_quest4[id] = str_to_num (quest[21])
	ma_quest5[id] = str_to_num (quest[22])
	ma_quest6[id] = str_to_num (quest[23])
	ma_quest7[id] = str_to_num (quest[24])
	ma_quest8[id] = str_to_num (quest[25])
	ma_quest9[id] = str_to_num (quest[26])
	ma_quest10[id] = str_to_num (quest[27])
	ma_quest11[id] = str_to_num (quest[28])
	ma_quest12[id] = str_to_num (quest[29])
	ma_quest13[id] = str_to_num (quest[30])
	ma_quest14[id] = str_to_num (quest[31])
	ma_quest15[id] = str_to_num (quest[32])
	ma_quest16[id] = str_to_num (quest[33])
	ma_quest17[id] = str_to_num (quest[34])
	ma_quest18[id] = str_to_num (quest[35])
	
	return PLUGIN_CONTINUE
}

Dodano 01 czerwiec 2011 - 07:38:
Wie ktoś o co chodzi? Trochę mi się spieszy
  • +
  • -
  • 0
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#7 Goliath

    Godlike

  • Przyjaciel

Reputacja: 1227
Godlike

  • Postów:2334
  • GG:
  • Steam:steam
  • Imię:Maciej
  • Lokalizacja:Mońki
Offline

Napisano 01.06.2011 10:14

Za mała tablica. Zmień:
new quest[36][32]

Na:
new quest[37][32]

  • +
  • -
  • 1

#8 sebul

    Godlike

  • Junior Admin

Reputacja: 2016
Godlike

  • Postów:5411
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Ostrołęka
Offline

Napisano 01.06.2011 15:02

O matko... Co to za kod? Do czego? Do jakichś questów? Po co tyle tych tablic?
Przeczytaj [Tutorial] Dodawanie questów - AMXX.pl: Support AMX Mod X i Zmienne wczytywanie z nvault - AMXX.pl: Support AMX Mod X ;]
  • +
  • -
  • 0
Posiadam TBM (inaczej PTB), które działa dużo lepiej niż zwykłe PTB, nawet na modach z lvlami. Zainteresowany? Proszę bardzo
Generator tabeli expa - aż do 103600 poziomu




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

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