Dexter1906 0 Odesláno: 9. Květen, 2013 Share Odesláno: 9. Květen, 2013 Takže, dnes keď som si išiel scompilovať mód, aby som skúsil či mi vôbec funguje compile, tak mi vypísalo toto: C:\Users\XXXXX\Desktop\XXXXX\Programy\pawno\XXXXX.pwn(12) : fatal error 100: cannot read from file: "" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. A pri spúšťaní pawnu mi vždy vypíše toto, ale spustí mi to pawno: Neviete čím to môže byť? Pritom v tom 12. riadku mám iba #include Link to comment Share on other sites More sharing options...
MrShoTys 9 Odesláno: 9. Květen, 2013 Share Odesláno: 9. Květen, 2013 To "Failed to set data for" je normalné.. hod sem riadky.. aj čo maš nad tym a pod tým Link to comment Share on other sites More sharing options...
Dexter1906 0 Odesláno: 9. Květen, 2013 Author Share Odesláno: 9. Květen, 2013 Čiže asi celý kód, neviem či to mám dobre na rýchlo som to skopíroval či to bude vôbec fungovať compile, aby som skúsil, mám to z tohto topicu: http://pawno.cz/topi...ce-pres-dialog/ Celý kód ktorý som skopíroval totálne do bodky, na skúsenie či ten compile funguje //------------------------------------------------------------------------------ // // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX // //------------------------------------------------------------------------------ #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #include new PLAYERLIST_authed[MAX_PLAYERS]; stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } return 1; } PLAYERLIST_authed[playerid] = false; if (!PLAYERLIST_authed[playerid]) { if(udb_Exists(PlayerName(playerid))) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Vitaj spät !\nNapis heslo !","Pouzit","Odpojit"); } else { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registracia","Vitaj !\nZaregistruj sa, napis heslo","Pouzit","Odpojit"); } if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid] = false; if(dialogid == 1) { if(response == 1) { if (udb_Exists(PlayerName(playerid))) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Prihlas sa ! napis heslo","Pouzit","Odpojit"); if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registrace","Musis napisat heslo !","Pouzit","Odpojit"); if (udb_Create(PlayerName(playerid),inputtext)) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Dobre, teraz napis heslo znova !","Pouzit","Odpojit"); } if(response == 2) { Kick(playerid); } } //============================================================================== if(dialogid == 2) { if(response == 1) { if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Musis zadat heslo !\nNapis heslo !","Pouzit","Odpojit"); if (udb_CheckLogin(PlayerName(playerid),inputtext)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid] = true; return SendClientMessage(playerid, BARVA, "Uspesne si sa prihlasil !"); } return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Nespravne heslo !","Pouzit","Odpojit"); } if(response == 2) { Kick(playerid); } } Link to comment Share on other sites More sharing options...
MrShoTys 9 Odesláno: 9. Květen, 2013 Share Odesláno: 9. Květen, 2013 Lol to čo si porobil? ved ty si to nedal do publicku :d ach jaj počkaj chvilu hodim ti to sem Link to comment Share on other sites More sharing options...
rhsCZ 19 Odesláno: 9. Květen, 2013 Share Odesláno: 9. Květen, 2013 To "Failed to set data for" je normalné.. hod sem riadky.. aj čo maš nad tym a pod tým ty šmudlo da se to vypnout když dá options a odškrtne associate file with *.pwn nebo jak to bylo Čiže asi celý kód, neviem či to mám dobre na rýchlo som to skopíroval či to bude vôbec fungovať compile, aby som skúsil, mám to z tohto topicu: http://pawno.cz/topi...ce-pres-dialog/ Celý kód ktorý som skopíroval totálne do bodky, na skúsenie či ten compile funguje //------------------------------------------------------------------------------ // // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX // //------------------------------------------------------------------------------ #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #include new PLAYERLIST_authed[MAX_PLAYERS]; stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } return 1; } PLAYERLIST_authed[playerid] = false; if (!PLAYERLIST_authed[playerid]) { if(udb_Exists(PlayerName(playerid))) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Vitaj spät !\nNapis heslo !","Pouzit","Odpojit"); } else { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registracia","Vitaj !\nZaregistruj sa, napis heslo","Pouzit","Odpojit"); } if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid] = false; if(dialogid == 1) { if(response == 1) { if (udb_Exists(PlayerName(playerid))) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Prihlas sa ! napis heslo","Pouzit","Odpojit"); if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registrace","Musis napisat heslo !","Pouzit","Odpojit"); if (udb_Create(PlayerName(playerid),inputtext)) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Dobre, teraz napis heslo znova !","Pouzit","Odpojit"); } if(response == 2) { Kick(playerid); } } //============================================================================== if(dialogid == 2) { if(response == 1) { if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Musis zadat heslo !\nNapis heslo !","Pouzit","Odpojit"); if (udb_CheckLogin(PlayerName(playerid),inputtext)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid] = true; return SendClientMessage(playerid, BARVA, "Uspesne si sa prihlasil !"); } return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Nespravne heslo !","Pouzit","Odpojit"); } if(response == 2) { Kick(playerid); } } #include are you fucking kidding me? #include <a_samp> takto ježiš to je celý blbě Link to comment Share on other sites More sharing options...
Dexter1906 0 Odesláno: 9. Květen, 2013 Author Share Odesláno: 9. Květen, 2013 Ja som to iba skopíroval Sorry ale s pawno robím 2. deň Pretože som skúšal či mi ide ten compile keď to hádzalo chyby pred tým A dik, už som vypol to Failed to set data for. Link to comment Share on other sites More sharing options...
MrShoTys 9 Odesláno: 9. Květen, 2013 Share Odesláno: 9. Květen, 2013 #include <a_samp> #include <dini> #include <dudb> #include <dutils> #define B_SEDA 0x808080FF #define B_CERV 0xA40000FF #define B_BILA 0xFFFFFFFF #define B_ZELE 0x00A400FF #define REG_DIALOG 0 #define LOG_DIALOG 1 enum PLAYER_INFO { bool:Login } new Informace[MAX_PLAYERS][PLAYER_INFO]; stock Jmeno(playerid) { new pName[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { if(!IsPlayerNPC(playerid)) { GetPlayerName(playerid, pName, sizeof(pName)); } } return pName; } stock SendMessage(playerid, color, message[]) { if(IsPlayerConnected(playerid)) { if(!IsPlayerNPC(playerid)) { SendClientMessage(playerid, color, message); } } } public OnPlayerRequestClass(playerid, classid) { if(Informace[playerid][Login] == false) { if(udb_Exists(Jmeno(playerid))) { new message[256]; format(message, sizeof(message), "Vitej zpatky, %s!\n\n\nDole vypln heslo!\n\n\n", Jmeno(playerid)); ShowPlayerDialog(playerid, LOG_DIALOG, DIALOG_STYLE_INPUT, "Prihlaseni", message, "OK", "Konec"); } else { new message[256]; format(message, sizeof(message), "Zaregistruj se %s!\n\n\nDole vypln heslo!\n\n\n", Jmeno(playerid)); ShowPlayerDialog(playerid, REG_DIALOG, DIALOG_STYLE_INPUT, "Registrace", message, "OK", "Konec"); } } return 1; } public OnPlayerConnect(playerid) { Informace[playerid][Login] = false; return 1; } public OnPlayerDisconnect(playerid, reason) { if(Informace[playerid][Login] == true) { dUserSetINT(Jmeno(playerid)).("Penize",GetPlayerMoney(playerid)); } Informace[playerid][Login] = false; return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == REG_DIALOG) { if(response == 1) { if(strlen(inputtext) == 0) { SendClientMessage(playerid, B_CERV, "[ ! ] Moc kratke heslo!"); new message[256]; format(message, sizeof(message), "Zaregistruj se %s!\n\n\nDole vypln heslo!\n\n\n", Jmeno(playerid)); ShowPlayerDialog(playerid, REG_DIALOG, DIALOG_STYLE_INPUT, "Registrace", message, "OK", "Konec"); } else { if (udb_Create(Jmeno(playerid),inputtext)) { new message[256]; format(message, sizeof(message), "Prihlas se %s!\n\n\nDole vypln heslo!\n\n\n", Jmeno(playerid)); ShowPlayerDialog(playerid, LOG_DIALOG, DIALOG_STYLE_INPUT, "Prihlaseni", message, "OK", "Konec"); } } } else if(dialogid == LOG_DIALOG) { if(response == 1) { if (udb_CheckLogin(Jmeno(playerid),inputtext)) { GivePlayerMoney(playerid,dUserINT(Jmeno(playerid)).("Penize")-GetPlayerMoney(playerid)); Informace[playerid][Login] = true; new message[256]; format(message, sizeof(message), "[ * ] Vitej ve hre %s!", Jmeno(playerid)); SendMessage(playerid, B_ZELE, message); SendMessage(playerid, B_BILA, "[ * ] Mel by jsi si zaridit obcansky prukaz."); SendMessage(playerid, B_BILA, "[ * ] Bez neho si nic neporidis, ani se nezamestnas."); SendMessage(playerid, B_BILA, "[ * ] Napis /commads pro seznam prikazu."); SendMessage(playerid, B_BILA, "[ * ] Napis /help pokud neco nevis."); } else { SendMessage(playerid, B_CERV, "[ ! ] Spatne heslo!"); new message[256]; format(message, sizeof(message), "Prihlas se %s!\n\n\nDole vypln heslo!\n\n\n", Jmeno(playerid)); ShowPlayerDialog(playerid, LOG_DIALOG, DIALOG_STYLE_INPUT, "Prihlaseni", message, "OK", "Konec"); } } else { SendMessage(playerid, B_CERV, "[ ! ] Prihlaseni je povinne!"); new message[256]; format(message, sizeof(message), "Prihlas se %s!\n\n\nDole vypln heslo!\n\n\n", Jmeno(playerid)); ShowPlayerDialog(playerid, LOG_DIALOG, DIALOG_STYLE_INPUT, "Prihlaseni", message, "OK", "Konec"); } } } return 1; } Tu to maš.. nezapomen ked nemaš stiahnute include #include <dini> #include <dudb> #include <dutils> ty šmudlo da se to vypnout když dá options a odškrtne associate file with *.pwn nebo jak to bylo #include are you fucking kidding me? #include <a_samp> takto ježiš to je celý blbě No ja zapomnel no Link to comment Share on other sites More sharing options...
Dexter1906 0 Odesláno: 9. Květen, 2013 Author Share Odesláno: 9. Květen, 2013 C:\Users\XXX\Desktop\Untitled.pwn(32) : error 017: undefined symbol "IsPlayerNPC" C:\Users\XXX\Desktop\Untitled.pwn(47) : error 017: undefined symbol "IsPlayerNPC" C:\Users\XXX\Desktop\Untitled.pwn(63) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\XXX\Desktop\Untitled.pwn(70) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\XXX\Desktop\Untitled.pwn(104) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse") C:\Users\XXX\Desktop\Untitled.pwn(115) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\XXX\Desktop\Untitled.pwn(123) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\XXX\Desktop\Untitled.pwn(157) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\XXX\Desktop\Untitled.pwn(165) : error 017: undefined symbol "ShowPlayerDialog" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Errors. Teraz mi to vyhadzuje toto Poradí mi niekto prosím? Link to comment Share on other sites More sharing options...
Albus Brambůrek 41 Odesláno: 9. Květen, 2013 Share Odesláno: 9. Květen, 2013 Starý includy ? Popřípadě zkus stáhnout server z samp.com tam je i nejnovější pawno Link to comment Share on other sites More sharing options...
Lerry 15 Odesláno: 9. Květen, 2013 Share Odesláno: 9. Květen, 2013 jenom něco aby ti to néházelo "Failed to set data for" otevři si složku kde máš pawno klikni na "settings" a změň FileAssoc=1 na FileAssoc=0 Link to comment Share on other sites More sharing options...
Dexter1906 0 Odesláno: 10. Květen, 2013 Author Share Odesláno: 10. Květen, 2013 Lerry, to už mám, ale dík. A Isigar, nové pawno som už stiahnúť takisto skúšal. Link to comment Share on other sites More sharing options...
Lerry 15 Odesláno: 10. Květen, 2013 Share Odesláno: 10. Květen, 2013 Lerry, to už mám, ale dík. A Isigar, nové pawno som už stiahnúť takisto skúšal. jasne hele tak z někým se domluv a udělejte to přes skype Link to comment Share on other sites More sharing options...
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