Dannynator 0 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 Dobry den, mam mensi problem z dialogmi, kdo by mi vedel poradit, bol by som velmi rad. Errory: C:\Users\Moriak\Desktop\stratafor.pwn(19) : error 075: input line too long (after substitutions) C:\Users\Moriak\Desktop\stratafor.pwn(41) : error 001: expected token: "#endif", but found "-end of file-" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Riadok 19: { Riadok 41: Ten tam ani neni.. Diky moc za vsetky rady Link to comment Share on other sites More sharing options...
0 Michal Kuřátko (_Michael_) 49 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 Dej celý kód někde máš otevřený if Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 Riadok 18 je veľmi dlhý. A na 41 .. pred ním máš niekde #if a nemáš #endif Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 řádek 18 moc dlouhej ? skus dat na řádek 41 #endif Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 ako bolo pisane, riadok 18 máš moc dlhý, musíš ten text dať do premennej (stringu) a odstráň z módu všetky hovadiny ako #if ..., #else, #endif Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 ako bolo pisane, riadok 18 máš moc dlhý, musíš ten text dať do premennej (stringu) a odstráň z módu všetky hovadiny ako #if ..., #else, #endif čo ak ich tam používá ? Ale pochybujem. Ale nutné neni ich odstrániť. Iba ak ich nepotrebuje Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 To ze je ten riadok velmi dlhy, to je blbost, lebo tam mam dialogy. Cely script (vycenzurovane texty z dovodu ochrany servera) #include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid,45647,DIALOG_STYLE_MSGBOX,"TEXT","{FFFFFF}TEXT\n{00FFFF}TEXT\n{FFFFCC}TEXT\n{666699}TEXT\n{666699}TEXT\n{CCCCFF}TEXT\n{CCFFCC}TEXT","Ok","Zrusit"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 45647) { if(response == 1) { SendClientMessage(playerid,0xFFFFFFFF,"Dakujeme ze si si precital novinky o servery, snad sa ti bude hrat pohodlne!"); } else if(response == 0) { SendClientMessage(playerid,0xFFFFFFFF,"Nabuduce si to precitaj :-)"); } } return 1; } Bez cenzury je tam samozrejme ze ten riadok ovela dlhsi, ale no. Cenzura = TEXT Ked som tam dal #endif tak vyhodilo len tento error C:\Users\Moriak\Desktop\stratafor.pwn(19) : error 075: input line too long (after substitutions) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Diky za vase rady Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 predpokladám že je to nováčik a zas tam má #if defined FILTERSCRIPT či ako to je, aby poznal a používal #if, to si nemyslím, a navyše sa to veľmi zriedkavo používa //EDIT: Nehovorím ? Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 Citaj prosim post vyssie:) Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 45647 dej tam třeba 456 Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 A niesom si istý či ti to ID dialogu bude fungovať, keďže na wikine je: "Max dialogid is 32767" Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 Stale nic, btw ked som vyhodil if defined Filterscript tak errory: C:\Users\Moriak\Desktop\stratafor.pwn(16) : error 075: input line too long (after substitutions) C:\Users\Moriak\Desktop\stratafor.pwn(17) : error 037: invalid string (possibly non-terminated string) C:\Users\Moriak\Desktop\stratafor.pwn(17) : error 017: undefined symbol "FFFFFF" C:\Users\Moriak\Desktop\stratafor.pwn(17) : warning 217: loose indentation C:\Users\Moriak\Desktop\stratafor.pwn(17) : error 017: undefined symbol "Novinky" C:\Users\Moriak\Desktop\stratafor.pwn(17) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors. Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 neviem ako ty, ale mne toto ide bez problémov: #include <a_samp> public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid,18947,DIALOG_STYLE_MSGBOX,"TEXT","{FFFFFF}TEXT\n{00FFFF}TEXT\n{FFFFCC}TEXT\n{666699}TEXT\n{666699}TEXT\n{CCCCFF}TEXT\n{CCFFCC}TEXT","Ok","Zrusit"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 18947) { if(response == 1) { SendClientMessage(playerid,0xFFFFFFFF,"Dakujeme ze si si precital novinky o servery, snad sa ti bude hrat pohodlne!"); } else if(response == 0) { SendClientMessage(playerid,0xFFFFFFFF,"Nabuduce si to precitaj :-)"); } } return 1; } Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 Stale nic, btw ked som vyhodil if defined Filterscript tak errory: C:\Users\Moriak\Desktop\stratafor.pwn(16) : error 075: input line too long (after substitutions) C:\Users\Moriak\Desktop\stratafor.pwn(17) : error 037: invalid string (possibly non-terminated string) C:\Users\Moriak\Desktop\stratafor.pwn(17) : error 017: undefined symbol "FFFFFF" C:\Users\Moriak\Desktop\stratafor.pwn(17) : warning 217: loose indentation C:\Users\Moriak\Desktop\stratafor.pwn(17) : error 017: undefined symbol "Novinky" C:\Users\Moriak\Desktop\stratafor.pwn(17) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors. #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } dej toto pryč Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 C:\Users\Imrich\Desktop\stratafor.pwn(14) : warning 225: unreachable code C:\Users\Imrich\Desktop\stratafor.pwn(14) : warning 217: loose indentation C:\Users\Imrich\Desktop\stratafor.pwn(14) : error 029: invalid expression, assumed zero C:\Users\Imrich\Desktop\stratafor.pwn(14) : error 004: function "OnPlayerSpawn" is not implemented C:\Users\Imrich\Desktop\stratafor.pwn(15) : error 075: input line too long (after substitutions) C:\Users\Imrich\Desktop\stratafor.pwn(16) : error 017: undefined symbol "playerid" C:\Users\Imrich\Desktop\stratafor.pwn(16) : error 017: undefined symbol "FFFFFF" C:\Users\Imrich\Desktop\stratafor.pwn(16) : warning 217: loose indentation C:\Users\Imrich\Desktop\stratafor.pwn(16) : error 017: undefined symbol "Novinky" C:\Users\Imrich\Desktop\stratafor.pwn(16) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors. Dal som to prec Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 ako ťa napadla taká blbosť... vráť to tam, normalne použi to čo som ti poslal, nemáš v tom ešte nejake extra definy alebo includy? Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 To co si mi poslal, funguje. Lenze ked tam dopisem moje texty do dialogov, nefunguje. Vyhodi tie errory co som uz poslal. Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 udělej to jk ti napsal LYRIcS Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 Nechapes, ze som urobil? Ale ja namiesto TEXT dopisem svoje vlastne texty, a potom to uz nefunguje. Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 To co si mi poslal, funguje. Lenze ked tam dopisem moje texty do dialogov, nefunguje. Vyhodi tie errory co som uz poslal. ty dilino... tak tu napiš asi aj tie texty čo tam maš ty napisane Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 #include <a_samp> public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid,456,DIALOG_STYLE_MSGBOX,"Novinky na serveru","{FFFFFF}Novinky na nasom hernom servery!\n{00FFFF}- Moznost kupovat si VIP cez nas web! Nas web najdete nizsie, a tam si otvorite kolonku VIP Aktivacia! Prikazy /vhelp\n{FFFFCC}Nas web: www.CENZURA.uvadi.cz\n{666699}Navstiv nas Team Speak3! Kde budu prebiehat rozne sutaze o herne peniaze a aj VIP!\n{666699}IP Team Speaku: ts.fakaheda.eu:CENZURA\n{CCCCFF}Pametaj si, byt na nasom TSku je velka vyhoda, oproti ostatnym! :-)\n{CCFFCC}Za CENZURAr vam vela zabavy pri hrani praje Dannynator :-)","Ok","Zrusit"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 456) { if(response == 1) { SendClientMessage(playerid,0xFFFFFFFF,"Dakujeme ze si si precital novinky o servery, snad sa ti bude hrat pohodlne!"); } else if(response == 0) { SendClientMessage(playerid,0xFFFFFFFF,"Nabuduce si to precitaj :-)"); } } return 1; } Neviem ci vam to zobrazi cele, kedze to je strasne vela textu.. Link to comment Share on other sites More sharing options...
0 ERIK518 27 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 Tak to použí takto ... new string[256]; // to je počet slov daj si koľko potrebuješ!! strcat(string, "TEXT \n"); strcat(string, "TEXT \n"); strcat(string, "TEXT \n"); strcat(string, "TEXT \n"); strcat(string, "TEXT \n"); strcat(string, "TEXT \n"); ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_LIST,"TEXT",string,"OK","OK"); na 100% ty ten error nevyskočí keď to urobíš takto ! Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 A to mam akoze pocitat tie slova tam ci co?.. Nepochopil som Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 ... a potom vraj nemáš dlhý text #include <a_samp> public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerSpawn(playerid) { new pusinqa222[512]; strcat(pusinqa222, "{FFFFFF}Novinky na nasom hernom servery!\n{00FFFF}- Moznost kupovat si VIP cez nas web! Nas web najdete nizsie, a tam si otvorite kolonku VIP Aktivacia! Prikazy /vhelp\n{FFFFCC}Nas web: www.CENZURA.uvadi.cz\n"); strcat(pusinqa222, "{666699}Navstiv nas Team Speak3! Kde budu prebiehat rozne sutaze o herne peniaze a aj VIP!\n{666699}IP Team Speaku: ts.fakaheda.eu:CENZURA\n{CCCCFF}Pametaj si, byt na nasom TSku je velka vyhoda, oproti ostatnym! :-)\n{CCFFCC}Za CENZURAr vam vela zabavy pri hrani praje Dannynator :-)"); ShowPlayerDialog(playerid,456,DIALOG_STYLE_MSGBOX,"Novinky na serveru",pusinqa222,"Ok","Zrusit"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 456) { if(response == 1) { SendClientMessage(playerid,0xFFFFFFFF,"Dakujeme ze si si precital novinky o servery, snad sa ti bude hrat pohodlne!"); } else if(response == 0) { SendClientMessage(playerid,0xFFFFFFFF,"Nabuduce si to precitaj :-)"); } } return 1; } Link to comment Share on other sites More sharing options...
0 Dannynator 0 Odesláno: 20. Duben, 2013 Author Share Odesláno: 20. Duben, 2013 Stale a stale errory... C:\Users\Imrich\Desktop\stratafor.pwn(17) : error 075: input line too long (after substitutions) C:\Users\Imrich\Desktop\stratafor.pwn(18) : error 037: invalid string (possibly non-terminated string) C:\Users\Imrich\Desktop\stratafor.pwn(18) : error 017: undefined symbol "FFFFFF" C:\Users\Imrich\Desktop\stratafor.pwn(18) : warning 217: loose indentation C:\Users\Imrich\Desktop\stratafor.pwn(18) : error 017: undefined symbol "Novinky" C:\Users\Imrich\Desktop\stratafor.pwn(18) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors. Link to comment Share on other sites More sharing options...
0 Michal Kuřátko (_Michael_) 49 Odesláno: 20. Duben, 2013 Share Odesláno: 20. Duben, 2013 Ci boha napiš mi na skype, mám ho v profilu... Link to comment Share on other sites More sharing options...
Dotaz
Dannynator 0
Dobry den, mam mensi problem z dialogmi, kdo by mi vedel poradit, bol by som velmi rad.
Errory:
Riadok 19:
Riadok 41:
Diky moc za vsetky rady
Link to comment
Share on other sites
25 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now