Kavi 1 Odesláno: 24. Říjen, 2010 Share Odesláno: 24. Říjen, 2010 dobry tut ale jaksem předpokladal takse to vip hráči neuloží vite nikdo čim to je?, a jakbytto mělo vypadat aby se mu to uložilo? Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 24. Říjen, 2010 Share Odesláno: 24. Říjen, 2010 v pripade ak mas DUDB/DUTILS tak do disconectu dUserSetINT(PlayerName(playerid)).("VIP",Vip[playerid]); A do loginu: Vip[playerid]=dUserINT(PlayerName(playerid)).("VIP"); a v pripade DINI daj do disconectu dini_IntSet(file, "VIP",Vip[playerid]); a do loginu Vip[playerid] = dini_Int(file, "VIP"); to je vsetko Link to comment Share on other sites More sharing options...
Guest roman2325 Odesláno: 15. Prosinec, 2010 Share Odesláno: 15. Prosinec, 2010 mam erory Erory: C:\Documents and Settings\Hmm\Plocha\Bar u vočka.pwn(304) : error 010: invalid function or declaration C:\Documents and Settings\Hmm\Plocha\Bar u vočka.pwn(320) : error 025: function heading differs from prototype C:\Documents and Settings\Hmm\Plocha\Bar u vočka.pwn(320) : error 021: symbol already defined: "udb_UserSetInt" C:\Documents and Settings\Hmm\Plocha\Bar u vočka.pwn(320) : error 017: undefined symbol "playerid" C:\Documents and Settings\Hmm\Plocha\Bar u vočka.pwn(320) : fatal error 107: too many error messages on one line Radky: ///vip Vip[playerid]=dUserINT(PlayerName(playerid)).("Vip ucet"); ////vip public OnPlayerDisconnect(playerid, reason) { OnPlayerSavingAcc(playerid); new odchozihrac[100]; GetPlayerName(playerid, odchozihrac, 30); switch (reason) { case 0: format(odchozihrac, 100, "Hráč %s opustil server (Čas vypršel)", odchozihrac); case 1: format(odchozihrac, 100, "Hráč %s opustil server (Odešel)", odchozihrac); case 2: format(odchozihrac, 100, "Hráč %s byl vyhozen (Vykopnut/Zabanován/Odpojen)", odchozihrac); } SendClientMessageToAll(COLOR_ORANGE, odchozihrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 201); return 1; } dUserSetINT(PlayerName(playerid)).("Vip ucet",Vip[playerid]); } Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 15. Prosinec, 2010 Share Odesláno: 15. Prosinec, 2010 ///vip Vip[playerid]=dUserINT(PlayerName(playerid)).("Vip ucet"); ////vip public OnPlayerDisconnect(playerid, reason) { OnPlayerSavingAcc(playerid); new odchozihrac[100]; GetPlayerName(playerid, odchozihrac, 30); switch (reason) { case 0: format(odchozihrac, 100, "Hráč %s opustil server (Čas vypršel)", odchozihrac); case 1: format(odchozihrac, 100, "Hráč %s opustil server (Odešel)", odchozihrac); case 2: format(odchozihrac, 100, "Hráč %s byl vyhozen (Vykopnut/Zabanován/Odpojen)", odchozihrac); } SendClientMessageToAll(COLOR_ORANGE, odchozihrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 201); dUserSetINT(PlayerName(playerid)).("Vip ucet",Vip[playerid]); return 1; } Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 15. Prosinec, 2010 Share Odesláno: 15. Prosinec, 2010 daj viac ktomu daj aspon 10 riadkov nad a 10 pod Link to comment Share on other sites More sharing options...
Guest roman2325 Odesláno: 15. Prosinec, 2010 Share Odesláno: 15. Prosinec, 2010 SendClientMessage(playerid,COLOR_YELLOW , "Vítejte na Hospoda u Vočka 1.0"); SendClientMessage(playerid,COLOR_YELLOW , "Vytvořili : Programátor - YKZDominik |Maper - YKZITACHI |Programátor - Romanek2325 |"); SendClientMessage(playerid,COLOR_YELLOW , "Doufáme že se vám mód líbi"); SendClientMessage(playerid,COLOR_YELLOW , "Příkazy naleznete napsáním /příkazy a pokud potřebujete pomoc napiště /pomoc"); SendClientMessage(playerid,COLOR_YELLOW , "Zaviračka je v 23:00 a oteviračka 3:00"); AFK[playerid] = 0; PLAYERLIST_authed[playerid]=false; SetupPlayerForClassSelection(playerid); new novyhrac[100]; GetPlayerName(playerid, novyhrac, 24); format(novyhrac, 100, "Hráč %s se připojil na server :)", novyhrac); SendClientMessageToAll(COLOR_ORANGE, novyhrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 200); Vip[playerid]=dUserINT(PlayerName(playerid)).("Vip ucet") wc[playerid]=dUserINT(PlayerName(playerid)).("wc");//načte proměnnou SetTimerEx("wco",60000,1,"i",playerid); //spustí TimerEx na ubírání potřeby na wc ShowProgressBarForPlayer(playerid,wcx); //ukáže hráči progress bar wcx return 1; } public OnPlayerDisconnect(playerid, reason) { OnPlayerSavingAcc(playerid); new odchozihrac[100]; GetPlayerName(playerid, odchozihrac, 30); switch (reason) { case 0: format(odchozihrac, 100, "Hráč %s opustil server (Čas vypršel)", odchozihrac); case 1: format(odchozihrac, 100, "Hráč %s opustil server (Odešel)", odchozihrac); case 2: format(odchozihrac, 100, "Hráč %s byl vyhozen (Vykopnut/Zabanován/Odpojen)", odchozihrac); } SendClientMessageToAll(COLOR_ORANGE, odchozihrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 201); dUserSetINT(PlayerName(playerid)).("Vip ucet",Vip[playerid]); return 1; } erory:C:\Documents and Settings\Hmm\Plocha\Bar u vočka.pwn(299) : error 001: expected token: ";", but found "-identifier-" Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 15. Prosinec, 2010 Share Odesláno: 15. Prosinec, 2010 SendClientMessage(playerid,COLOR_YELLOW , "Vítejte na Hospoda u Vočka 1.0"); SendClientMessage(playerid,COLOR_YELLOW , "Vytvořili : Programátor - YKZDominik |Maper - YKZITACHI |Programátor - Romanek2325 |"); SendClientMessage(playerid,COLOR_YELLOW , "Doufáme že se vám mód líbi"); SendClientMessage(playerid,COLOR_YELLOW , "Příkazy naleznete napsáním /příkazy a pokud potřebujete pomoc napiště /pomoc"); SendClientMessage(playerid,COLOR_YELLOW , "Zaviračka je v 23:00 a oteviračka 3:00"); AFK[playerid] = 0; PLAYERLIST_authed[playerid]=false; SetupPlayerForClassSelection(playerid); new novyhrac[100]; GetPlayerName(playerid, novyhrac, 24); format(novyhrac, 100, "Hráč %s se připojil na server ", novyhrac); SendClientMessageToAll(COLOR_ORANGE, novyhrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 200); Vip[playerid]=dUserINT(PlayerName(playerid)).("Vip ucet"); wc[playerid]=dUserINT(PlayerName(playerid)).("wc");//načte proměnnou SetTimerEx("wco",60000,1,"i",playerid); //spustí TimerEx na ubírání potřeby na wc ShowProgressBarForPlayer(playerid,wcx); //ukáže hráči progress bar wcx return 1; } public OnPlayerDisconnect(playerid, reason) { OnPlayerSavingAcc(playerid); new odchozihrac[100]; GetPlayerName(playerid, odchozihrac, 30); switch (reason) { case 0: format(odchozihrac, 100, "Hráč %s opustil server (Čas vypršel)", odchozihrac); case 1: format(odchozihrac, 100, "Hráč %s opustil server (Odešel)", odchozihrac); case 2: format(odchozihrac, 100, "Hráč %s byl vyhozen (Vykopnut/Zabanován/Odpojen)", odchozihrac); } SendClientMessageToAll(COLOR_ORANGE, odchozihrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 201); dUserSetINT(PlayerName(playerid)).("Vip ucet",Vip[playerid]); return 1; } Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 15. Prosinec, 2010 Share Odesláno: 15. Prosinec, 2010 SendClientMessage(playerid,COLOR_YELLOW , "Vítejte na Hospoda u Vočka 1.0");SendClientMessage(playerid,COLOR_YELLOW , "Vytvořili : Programátor - YKZDominik |Maper - YKZITACHI |Programátor - Romanek2325 |"); SendClientMessage(playerid,COLOR_YELLOW , "Doufáme že se vám mód líbi"); SendClientMessage(playerid,COLOR_YELLOW , "Příkazy naleznete napsáním /příkazy a pokud potřebujete pomoc napiště /pomoc"); SendClientMessage(playerid,COLOR_YELLOW , "Zaviračka je v 23:00 a oteviračka 3:00"); AFK[playerid] = 0; PLAYERLIST_authed[playerid]=false; SetupPlayerForClassSelection(playerid); new novyhrac[100]; GetPlayerName(playerid, novyhrac, 24); format(novyhrac, 100, "Hráč %s se připojil na server :)", novyhrac); SendClientMessageToAll(COLOR_ORANGE, novyhrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 200); Vip[playerid]=dUserINT(PlayerName(playerid)).("Vip ucet") wc[playerid]=dUserINT(PlayerName(playerid)).("wc");//načte proměnnou SetTimerEx("wco",60000,1,"i",playerid); //spustí TimerEx na ubírání potřeby na wc ShowProgressBarForPlayer(playerid,wcx); //ukáže hráči progress bar wcx return 1; } public OnPlayerDisconnect(playerid, reason) { OnPlayerSavingAcc(playerid); new odchozihrac[100]; GetPlayerName(playerid, odchozihrac, 30); switch (reason) { case 0: format(odchozihrac, 100, "Hráč %s opustil server (Čas vypršel)", odchozihrac); case 1: format(odchozihrac, 100, "Hráč %s opustil server (Odešel)", odchozihrac); case 2: format(odchozihrac, 100, "Hráč %s byl vyhozen (Vykopnut/Zabanován/Odpojen)", odchozihrac); } SendClientMessageToAll(COLOR_ORANGE, odchozihrac); SendDeathMessage(playerid, INVALID_PLAYER_ID, 201); dUserSetINT(PlayerName(playerid)).("Vip ucet",Vip[playerid]); return 1; } erory:C:\Documents and Settings\Hmm\Plocha\Bar u vočka.pwn(299) : error 001: expected token: "; ", but found "-identifier-" Este zverejni cely mod To si nemohl najit takovou primitivni chybu sam? Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 Hazy mi to 2 erory nejaky DCMD poradte pls "help" Link to comment Share on other sites More sharing options...
Danny 37 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 LuKeCZ a čo tak sem tie errory napísať? čo si myslíš že mi vieme čo ti hádže v móde? Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(93) : error 017: undefined symbol "dcmd" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(94) : error 017: undefined symbol "dcmd" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(95) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 riadky !!!! Link to comment Share on other sites More sharing options...
Lurk 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(93) : error 017: undefined symbol "dcmd"C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(94) : error 017: undefined symbol "dcmd" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(95) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase co takhle zkusit dat nahoru do modu: #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 Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 Ted mi to hazi C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(94) : warning 217: loose indentation C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(241) : error 017: undefined symbol "COLOR_RED" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(242) : error 017: undefined symbol "COLOR_RED" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(243) : error 017: undefined symbol "COLOR_RED" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(246) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(247) : error 017: undefined symbol "COLOR_YELLOW" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(248) : error 017: undefined symbol "Vip" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(248) : warning 215: expression has no effect C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(248) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(248) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(248) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase a delam vip Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 chyby ti definice barev a nemas radkovani takze nahoru #pragma tabsize 0 a ty definice barev #define COLOR_YELLOW 0xFFFF00AA #define COLOR_RED 0xFF0000AA pak ti chyby stock takze uplne na konec stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } pak ti chyby new takze nahoru k newum new Vip[MAX_PLAYERS]; tak a to je asitak vse Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 red mi to hazi C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(252) : error 017: undefined symbol "Vip" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(252) : warning 215: expression has no effect C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(252) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(252) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(252) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 jzs a radek? Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 jaky radek? nechces mi to poslat cely VIP codem? Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 omg tak tady to mas cele! #include #include new Vip[MAX_PLAYERS]; #define COLOR_YELLOW 0xFFFF00AA #define COLOR_RED 0xFF0000AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_SYSTEM 0x008000AA #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 public OnPlayerConnect(playerid) { Vip[playerid]=dUserINT(PlayerName(playerid)).("Vip ucet"); return 1; } public OnPlayerDisconnect(playerid, reason) { dUserSetINT(PlayerName(playerid)).("Vip ucet",Vip[playerid]); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(setvipoff,9,cmdtext); dcmd(setvip,6,cmdtext); return 0; } dcmd_setvip(playerid,params[]) { new id = strval(params); new string[256]; if (!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Použi: /setvip id"); else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "Toto id není pripojené!"); else if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Nesi Rcon Admin"); // To si změnte na proměnu svého povolání; else { { format(string, sizeof(string), "Hl.Admin %s dal Vip Učet hračovi %s !", PlayerName(playerid), PlayerName(id)); SendClientMessageToAll(COLOR_YELLOW, string); Vip[id] = 1; } } return 1; } dcmd_setvipoff(playerid,params[]) { new id = strval(params); new string[256]; if (!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE, "Použi: /setvipoff id"); else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_WHITE, "Toto id není pripojené!"); else if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nesi Rcon Admin"); else { { format(string, sizeof(string), "Hl.Admin %s odobral Vip Učet hračovi %s !", PlayerName(playerid), PlayerName(id)); SendClientMessageToAll(COLOR_SYSTEM, string); Vip[id] = 0; } } return 1; } stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 hele chci to ulozit a pise mi to C:\Documents and Settings\Administrator\Plocha\Untitled.pwn(2) : fatal error 100: cannot read from file: "dudb" Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. a este jak se tam davaj PRIKAZY? Link to comment Share on other sites More sharing options...
Danny 37 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 stiahni si dudb.inc s include Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 hele poradite jak mam dat do VIP prikazy? Link to comment Share on other sites More sharing options...
Danny 37 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 Pokial by si používal trochu tlačítko search.php tak by si to zistil a ked chceš dať do tohoto VIP Príkazy tak ťi to nepôjde pretože nemáš .pwn súbor čo ten súbor typu pwn je potrebný k editovaní scriptu Link to comment Share on other sites More sharing options...
NurofeN-Cz 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 Udelej si vzdy prikaz, a hod tam podminku aby to mohl jen hrac s vip. if(Vip[playerid] < 1) return SendClientMessage(playerid, COLOR_WHITE, "nemas vip hodnost."); Link to comment Share on other sites More sharing options...
Human 0 Odesláno: 21. Únor, 2011 Share Odesláno: 21. Únor, 2011 no hele kam mam dat treba vgoto? 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