15.03.2015, 11:33
Try this:
This will fix 1 error, I think. How many cases do you have?
PHP код:
case DIALOG_SPOL:
{
if(!response) return Kick(playerid);
if(response)
switch(listitem)
{
//Otvaramo caseove
case 0:
{
new INI:File = INI_Open(UserPath(playerid));
INI_WriteInt(File,"Spol",musko);
INI_Close(File);
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Odabrali ste spol: muљko");
}
case 1:
{
new INI:File = INI_Open(UserPath(playerid));
INI_WriteInt(File,"Spol",zensko);
INI_Close(File);
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Odabrali ste spol: ћensko");
}
}
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_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","");