[Problem] Age dialog
#7

Add the tag after opening a file for to not have that problem, example:

PHP код:
new INI:File INI_Open(UserPath(playerid));
INI_SetTag(File"data"); //<-- add
INI_WriteInt(File,"Godine",27);
INI_Close(File); 
Try this:

PHP код:
case DIALOG_SPOL
        { 
            if(!
response) return Kick(playerid); 
            else 
            { 
                switch(
listitem
                { 
                    
//Otvaramo caseove 
                    
case 0
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Spol",0); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Odabrali ste spol: muљko"); 
                    } 
                    case 
1
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Spol",1); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Odabrali ste spol: ћensko"); 
                    } 
                } 
                
ShowPlayerDialog(playeridDIALOG_GODINEDIALOG_STYLE_LIST,"Odaberite godine","9 Godina\n10 Godina\n11 Godina\n12 Godina\n13 Godina\n14 Godina\n15 Godina\n16 Godina\n17 Godina\n18 Godina\n19 Godina\n20 Godina\n21 Godina\n22 Godina\n23 Godina\n24 Godina\n25 Godina\n26 Godina\n27 Godina\n28 Godina\n29 Godina\n30 Godina","Odaberi","Izlaz"); 
            } 
            return 
1
        } 

PHP код:
case DIALOG_GODINE
        { 
            if(!
response
                return 
Kick(playerid); 
            if(
response
            { 
                switch(
listitem
                { 
                    case 
0
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",9); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene 9."); 
                      } 
                    case 
2
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",11); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 11."); 
                    } 
                    case 
3
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",12); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 12"); 
                    } 
                    case 
4
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",13); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 13"); 
                    } 
                    case 
5
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",14); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 14"); 
                    } 
                    case 
6
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",15); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 15"); 
                    } 
                    case 
7
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",16); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 16"); 
                    } 
                    case 
8
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",16); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 16"); 
                    } 
                    case 
9
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");                        
                        
INI_WriteInt(File,"Godine",17); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 17"); 
                    } 
                    case 
10
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",18); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 18"); 
                    } 
                    case 
11
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");                        
                        
INI_WriteInt(File,"Godine",19); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 19"); 
                    } 
                    case 
12
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",20); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 20"); 
                    } 
                    case 
13
                    { 
                        new 
INI:File INI_Open(UserPath(playerid)); 
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",21); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 21"); 
                    } 
                    case 
14
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");                        
                        
INI_WriteInt(File,"Godine",22); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 22"); 
                    } 
                    case 
15
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");                        
                        
INI_WriteInt(File,"Godine",23); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 23"); 
                    } 
                    case 
16
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",24); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 24"); 
                    } 
                    case 
17
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",25); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 25"); 
                    } 
                    case 
18
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",26); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 26"); 
                    } 
                    case 
19
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",27); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 27"); 
                    } 
                    case 
20
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",28); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 28"); 
                    } 
                    case 
21
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",29); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 29"); 
                    } 
                    case 
22
                    { 
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File"data");
                        
INI_WriteInt(File,"Godine",30); 
                        
INI_Close(File); 
                        
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Godine uspjesno postavljene na 30"); 
                    } 
                } 
                
ShowPlayerDialog(playeridDIALOG_SUCCESS_1DIALOG_STYLE_MSGBOX,""COL_WHITE"Uspjesna registracija",""COL_WHITE"Poљtovani,uspjeљno ste registrirali novi account.\nZa vaљu sigurnost preporucavamo vam da odradite 'relog' kako bismo spremili podatke.\nUzivajte igrajuci na nasem serveru!","Uredu",""); 
            } 
            return 
1
        } 
Reply


Messages In This Thread
[Problem] Age dialog - by NoDi522 - 20.03.2015, 19:03
Re: [Problem] Age dialog - by Jimmy0wns - 20.03.2015, 19:30
Re: [Problem] Age dialog - by NoDi522 - 20.03.2015, 19:36
Respuesta: [Problem] Age dialog - by JuanStone - 20.03.2015, 19:53
Re: [Problem] Age dialog - by Sew_Sumi - 20.03.2015, 20:12
Re: [Problem] Age dialog - by NoDi522 - 20.03.2015, 20:16
Respuesta: [Problem] Age dialog - by JuanStone - 20.03.2015, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)