LukasB
Uživatel-
Příspěvků
193 -
Registrován
-
Aktivní
Content Type
Profiles
Forums
Calendar
Gallery
SA-MP
Everything posted by LukasB
-
pomoc Pád serveru po listitem v dialogu
LukasB replied to LukasB's question in Herní (SA:MP, CS apod.)
Ty si *** ? A ako mam potom použiť switch(dialogid) ... choď sa radšej zakopať ! -
pomoc Pád serveru po listitem v dialogu
LukasB replied to LukasB's question in Herní (SA:MP, CS apod.)
case DIALOG_INFO: { if(response == 1) { switch(listitem) { case 0:{ SendClientMessage(playerid,COLOR_BRIGHTRED,"TEST"); } } } } case DIALOG_NASTAVENIE: { switch(listitem) { case 0: { if(!strcmp(DOF2_GetString(Account(playerid),"Spawn","Nastavenie"),"Zamestnania",true)){ DOF2_SetString(Account(playerid),"Spawn","Firmy","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"Spawn","Nastavenie"),"Firmy",true)){ DOF2_SetString(Account(playerid),"Spawn","Domu","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"Spawn","Nastavenie"),"Domu",true)){ DOF2_SetString(Account(playerid),"Spawn","Gangu","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"Spawn","Nastavenie"),"Gangu",true)){ DOF2_SetString(Account(playerid),"Spawn","Zamestnania","Nastavenie"); DOF2_SaveFile(); } } case 1: { if(!strcmp(DOF2_GetString(Account(playerid),"CisliceZivota","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"CisliceZivota","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"CisliceZivota","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"CisliceZivota","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 2: { if(!strcmp(DOF2_GetString(Account(playerid),"NickyHracov","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"NickyHracov","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"NickyHracov","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"NickyHracov","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 3: { if(!strcmp(DOF2_GetString(Account(playerid),"GangUzemie","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"GangUzemie","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"GangUzemie","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"GangUzemie","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 4: { if(!strcmp(DOF2_GetString(Account(playerid),"PoziciaPoOdpojeni","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"PoziciaPoOdpojeni","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"PoziciaPoOdpojeni","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"PoziciaPoOdpojeni","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 5: { if(!strcmp(DOF2_GetString(Account(playerid),"KillList","Nastavenie"),"Globálny",true)){ DOF2_SetString(Account(playerid),"KillList","V strem. zone","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"KillList","Nastavenie"),"V strem. zone",true)){ DOF2_SetString(Account(playerid),"KillList","Globálny","Nastavenie"); DOF2_SaveFile(); } } case 6: { if(!strcmp(DOF2_GetString(Account(playerid),"VedlajsiChat","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"VedlajsiChat","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"VedlajsiChat","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"VedlajsiChat","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 7: { if(!strcmp(DOF2_GetString(Account(playerid),"Ankety","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"Ankety","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"Ankety","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"Ankety","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 8: { if(!strcmp(DOF2_GetString(Account(playerid),"Hodiny","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"Hodiny","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"Hodiny","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"Hodiny","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 9: { if(!strcmp(DOF2_GetString(Account(playerid),"PM","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"PM","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"PM","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"PM","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 10: { if(!strcmp(DOF2_GetString(Account(playerid),"PMVzkaz","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"PMVzkaz","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"PMVzkaz","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"PMVzkaz","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 11: { if(!strcmp(DOF2_GetString(Account(playerid),"BarvaNicku","Nastavenie"),"Zapnute",true)){ DOF2_SetString(Account(playerid),"CisliceZivota","Vypnute","Nastavenie"); DOF2_SaveFile(); } else if(!strcmp(DOF2_GetString(Account(playerid),"BarvaNicku","Nastavenie"),"Vypnute",true)){ DOF2_SetString(Account(playerid),"CisliceZivota","Zapnute","Nastavenie"); DOF2_SaveFile(); } } case 12: { } } } } return 1; } -
pomoc Pád serveru po listitem v dialogu
LukasB replied to LukasB's question in Herní (SA:MP, CS apod.)
Pod čím ? pod cmd alebo ondialog response ? Pretože cmd je nakonci -
pomoc Pád serveru po listitem v dialogu
LukasB replied to LukasB's question in Herní (SA:MP, CS apod.)
To je jedno ... chcem mať v tom poriadok a z strcatom mi ide všetko ... v tom chyba neni, keď sa to zobrazuje a vykoná príkaz ... nenadavaj mi, keď sám nevieš kde je chyba ... -
Čaute, sorry že otravujem a sorry že som sa k vám zle správal ale toto mi fakt vytahuje nervy . Spravil som si cez príkaz /info dialog v ktorom mám hlavne ... Chyba je že vždy keď sa mi zbrazí "TEST" ,tak mi spadne server . CMD:info(playerid,params[]) { new str[100]; strcat(str,"Hlavné"); ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_LIST,"Info",str,"OK","Nic"); return 1; } A v OnDialogRespose som si spravil na to switch(listitem), kvôli tomu, že tam budem mať viac riadkov ... case DIALOG_INFO: { if(response == 1) { switch(listitem) { case 0:{ SendClientMessage(playerid,COLOR_BRIGHTRED,"TEST"); } } } } Dialog DIALOG_INFO je definovani ako 1006. Ďakujem za každú odpoveď, a každej sa budem snažiť pochopiť
-
Ehm prepáč ale jediny ktorý sa priblížil k chybe bol ten steam wallet z výšením pretože ty si myslíš že keď to nejde tak ja som kkt ale muselo sa tam upraviť velkosť a struktura dof2 riadku ... a ty čo si my pomohol .. 50% viac ne !
-
1. Toto neni na riešenie súkromných záležitostí ! 2. LOCK, chyba bola uplne, ale uplne niekde inde ... 3. Takže velmi pekne ďakujem -.-
-
hmm skúsil som väčšie aj menšie ale stále nič ..
-
Tak mi povedz ake tam mám dať ...
-
Prepáč ale toto robím presne ako login ale nechápem prečo to píše chyby ... Tak povedz ešte raz presne a ako ... a dokážem že to chyby bude písať znovu .. Upravené, chyby : (1031) : error 047: array sizes do not match, or destination array is too small (1032) : error 047: array sizes do not match, or destination array is too small (1033) : error 047: array sizes do not match, or destination array is too small (1034) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
-
Tak mi povedy ako to má byt .. ale realne ... hovorím skúšal som všetko aj tvoje rady ...
-
format(BanInfo[playerid][AdminNick], MAX_PLAYER_NAME+1, DOF2_GetString(Account(playerid), "AdminNick")); ... neviem kto to napísal ...
-
Zalez ... nevieš pawno len tu druhých poučuješ ... nic mi tam nechyba .. si kkt ? keď píšem že DOF2_GetBool ide a toto ne ??? Chod radsej robit z tým tvojim DINI a nestaraj sa !
-
Všetko ohladne toho ...
-
String ale keď tam dam tieš array píše to tú istú chybu ako Dovodu a Ipcke Prepáč .. ale stále také isté chyby...
-
Ak myslíš toto : enum pBan { pAdministrator, pZabanovany, pIp[26], pDovod[120], pCas, } Tak to mám
-
Aky array ?
-
1.Skúsil som všetky radi ... 2.Robím to 3 deň a stále to píše tú istú chybu ... 3.Keby som nevedel pawn tak nemam cely vlastný admin system a vehicle system... 4.Keď tam dam DOF2_GetString píše chybu, ale keď napr. DOF2_GetInt = nemá to žiaden problém, ale objaví sa až v hre ...
-
ALE CO SI KKT ???? PÍŠEM ŽE SOM SKÚŠAL VŠETKO ... omyl prirody ...
-
mal som ju tam aj tak neslo .... Keď dam dialku : (1039) : error 006: must be assigned to an array (1040) : error 006: must be assigned to an array (1041) : error 047: array sizes do not match, or destination array is too small (1042) : error 047: array sizes do not match, or destination array is too small Pls pomôžte
-
enum pBan { pAdministrator, pZabanovany, pIp, pDovod, pCas, } new BanInfo [MAX_PLAYERS][pBan];
-
riadok:1039 BanInfo[playerid][pAdministrator] = DOF2_GetString(BansCas(playerid),"Meno admina"); riadok:1040 BanInfo[playerid][pZabanovany] = DOF2_GetString(BansCas(playerid),"Meno zabanovaneho"); riadok:1041 BanInfo[playerid][pIp] = DOF2_GetString(BansCas(playerid),"IP Zabanovaneho"); riadok:1042 BanInfo[playerid][pDovod] = DOF2_GetString(BansCas(playerid),"Dôvod"); riadok:1043 BanInfo[playerid][pCas] = DOF2_GetInt(BansCas(playerid),"Cas"); Chyby: (1039) : error 006: must be assigned to an array (1040) : error 006: must be assigned to an array (1041) : error 047: array sizes do not match, or destination array is too small (1042) : error 047: array sizes do not match, or destination array is too small -V enume mam svoje premenne, aby si vedel...
-
1. Skúšal som to aj z formátom ale stále to isté ... Načítanie, a nemám to na Hráča ale na IP lebo keby niekto dostane ban, tak sa tam môže pripojiť znovu a znovu...
-
Stále to padá .. napíšem príkaz a zhodí mi to server... Ahaa ;D DIK Ale zistim som, že aj pri Administrator = DOF2_GetString(BansCas(playerid),"Meno admina"); Zabanovany = DOF2_GetString(BansCas(playerid),"Meno zabanovaneho"); IP = DOF2_GetInt(BansCas(playerid),"IP Zabanovaneho"); Dovod = DOF2_GetString(BansCas(playerid),"Dôvod"); Cas = DOF2_GetInt(BansCas(playerid),"Cas"); píše tú istí chybu ako pri tvojom ... Len problém je že pokial som tam mal GetInt nic nerobilo
-
a potom toto : DOF2_CreateFile(BansCas(playerid)); DOF2_SetString(BansCas(ID),"Meno admina",GetName(playerid),"Ban"); DOF2_SetString(BansCas(ID),"Meno zabanovaneho",GetName(ID),"Ban"); DOF2_SetString(BansCas(ID),"IP Zabanovaneho",GetIP(ID),"Ban"); DOF2_SetString(BansCas(ID),"Dôvod",Dovod,"Ban"); DOF2_SetInt(BansCas(ID),"Cas",Konec,"Ban"); DOF2_SaveFile(); Stock: stock BansCas(playerid) { new str[12 + MAX_PLAYER_NAME]; format(str,sizeof(str),"GRE/Bany/%s/%s-banc.ini",GetName(playerid),GetName(playerid)); return str; }