Lerry 15 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 Zdravím mám tu takovej problém z ukládáníí if(VIP[playerid] ==1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); { dini_Set(cesta, "VIP", VIP[playerid]); } } } Žádnej smích Předem dík za pomoc Link to comment Share on other sites More sharing options...
0 jenkings 121 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 Těch uzavíracích složenejch závorek tam máš nějak moc Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 9. Duben, 2013 Author Share Odesláno: 9. Duben, 2013 nemám to skusit takto ? if(VIP[playerid] ==1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_Set(cesta, "VIP", VIP[playerid]); } } } Link to comment Share on other sites More sharing options...
0 jenkings 121 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 podle toho prvního kódu co jsi sem dal jsou tam ty poslední dvě závorky navíc Link to comment Share on other sites More sharing options...
0 Codeer 1 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 jo udelej to tak a kdyžtak zkus za jednotlivý podmínky nechat vypsat nějakej text, aby bylo jasný co se provedlo a co už ne. Link to comment Share on other sites More sharing options...
0 jenkings 121 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 :slap: if(VIP[playerid] ==1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); { dini_Set(cesta, "VIP", VIP[playerid]); } toto zkus a napiš jestli to jde Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 9. Duben, 2013 Author Share Odesláno: 9. Duben, 2013 jenkings chceš vydět ty eráky ??? :DDD zapíše mě to jenom VIP= Link to comment Share on other sites More sharing options...
0 Hlavní moderátor vEnd 279 Odesláno: 9. Duben, 2013 Hlavní moderátor Share Odesláno: 9. Duben, 2013 :slap: if(VIP[playerid] ==1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); { dini_Set(cesta, "VIP", VIP[playerid]); } toto zkus a napiš jestli to jde máš tam 3x{ a 1x}, to nemůže jít... Zkus tohle: if(VIP[playerid] == 1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_IntSet(cesta,"VIP",VIP[playerid]); } else { dini_IntSet(cesta,"VIP",VIP[playerid]); } } Link to comment Share on other sites More sharing options...
0 Codeer 1 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 Spis by to melo byt takto ne? if(VIP[playerid] ==1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_Set(cesta, "VIP", VIP[playerid]); } } Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 9. Duben, 2013 Author Share Odesláno: 9. Duben, 2013 Zkus tohle: if(VIP[playerid] == 1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_IntSet(cesta,"VIP",VIP[playerid]); } else { dini_IntSet(cesta,"VIP",VIP[playerid]); } } to nezapíše nic zkoušel sem Spis by to melo byt takto ne? if(VIP[playerid] ==1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_Set(cesta, "VIP", VIP[playerid]); } } to jsem taky zkoušel Link to comment Share on other sites More sharing options...
0 eXot 18 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 Takto by to malo ísť if(VIP[playerid] = 1) { new name[21], cesta[256]; GetPlayerName(playerid, name, sizeof(name)); format(cesta, sizeof(file), VIP/%s.ini, name); { dini_IntSet(file, "VIP",VIP[playerid]); } } Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 9. Duben, 2013 Author Share Odesláno: 9. Duben, 2013 nejde Link to comment Share on other sites More sharing options...
0 eXot 18 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 A máš vytvorený priečinok "VIP" v ScriptFiles ? Daj sem celý public OnPlayerDisconect Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 9. Duben, 2013 Author Share Odesláno: 9. Duben, 2013 omg dělej ještě ze mě debila TVL ! to je vše v disconnet Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 9. Duben, 2013 Author Share Odesláno: 9. Duben, 2013 zapíše to jenom VIP= public OnPlayerDisconnect(playerid, reason) { if(VIP[playerid] == 1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_IntSet(cesta,"VIP",VIP[playerid]); } } return 1; } Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 9. Duben, 2013 Share Odesláno: 9. Duben, 2013 public OnPlayerDisconnect(playerid, reason) { if(VIP[playerid] == 1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_IntSet(cesta,"VIP",VIP[playerid]); } else { dini_IntSet(cesta,"VIP",VIP[playerid]); } } return 1; } Ak ti to nepôjde tak sa vyser na diňi a skús DOF2 1 Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 10. Duben, 2013 Author Share Odesláno: 10. Duben, 2013 public OnPlayerDisconnect(playerid, reason) { if(VIP[playerid] == 1) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid)); if(!dini_Exists(cesta)) { dini_Create(cesta); dini_IntSet(cesta,"VIP",VIP[playerid]); } else { dini_IntSet(cesta,"VIP",VIP[playerid]); } } return 1; } Ak ti to nepôjde tak sa vyser na diňi a skús DOF2 OOOOOOOOOOOOoooooooooooooooooooooOOOOOOOOOOOO dík už tu zapisuje ale nenačítá public OnPlayerConnect(playerid) { if(VIP[playerid] == 1) return SCM(playerid,ZELENA,"[ ! ] Vítej VIP hráči"); { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); { VIP[playerid] = dini_Int(cesta,"VIP"); } } return 1; } Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 13. Duben, 2013 Share Odesláno: 13. Duben, 2013 OOOOOOOOOOOOoooooooooooooooooooooOOOOOOOOOOOO dík už tu zapisuje ale nenačítá public OnPlayerConnect(playerid) { if(VIP[playerid] == 1) return SCM(playerid,ZELENA,"[ ! ] Vítej VIP hráči"); { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); { VIP[playerid] = dini_Int(cesta,"VIP"); } } return 1; } Bože.. public OnPlayerConnect(playerid) { new cesta[50]; format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid)); if(fexist(cesta)) { VIP[playerid] = dini_Int(cesta,"VIP"); if(VIP[playerid] == 1) { SCM(playerid,ZELENA,"[ ! ] Vítej VIP hráči"); } } return 1; } 1 Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 13. Duben, 2013 Author Share Odesláno: 13. Duben, 2013 dík dacane Link to comment Share on other sites More sharing options...
Dotaz
Lerry 15
Zdravím mám tu takovej problém z ukládáníí
Žádnej smích
Předem dík za pomoc
Link to comment
Share on other sites
18 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