|
please dont post me or say you have tutorial or something like that.. because i still dont get it how to add where put stuff and like that.
|
|
Hi, i dont know how to add something like "Gender" in register/login.. And please dont post me or say you have tutorial or something like that.. because i still dont get it how to add where put stuff and like that. if you have some opinon how where i will be very grateful
![]() |
#define DIALOG_SEX (1)//change it to a number that is not in use
enum pInfo
pSex
};
new user[MAX_PLAYERS][pInfo];
//You go where you have your INI_Int
INI_Int("Sexo", user[playerid][jSexo]);
//You go where you have your INI_WriteInt
INI_WriteInt(File, "Sexo", user[playerid][pSex]);
// Go to your Data users
user[playerid][pSex] = 0;
//You paste this in the previous dialog
ShowPlayerDialog(playerid, D_SEXO, DIALOG_STYLE_MSGBOX, "Sex", їWhat is the sex of your charactere?", "Male", "Female");
public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext [ ] )
{
if(dialogid == DIALOG_SEX)
{
if (response == 1) {
user[playerid][jSeo] = 1;
} else {
user[playerid][jSex] = 2;
}
}
return 0 ;
}
|
Saved system? if it's YSI, it's like that.
Код:
#define DIALOG_SEX (1)//change it to a number that is not in use
enum pInfo
pSex
};
new user[MAX_PLAYERS][pInfo];
//You go where you have your INI_Int
INI_Int("Sexo", user[playerid][jSexo]);
//You go where you have your INI_WriteInt
INI_WriteInt(File, "Sexo", user[playerid][pSex]);
// Go to your Data users
user[playerid][pSex] = 0;
//You paste this in the previous dialog
ShowPlayerDialog(playerid, D_SEXO, DIALOG_STYLE_MSGBOX, "Sex", їWhat is the sex of your charactere?", "Male", "Female");
public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext [ ] )
{
if(dialogid == DIALOG_SEX)
{
if (response == 1) {
user[playerid][jSeo] = 1;
} else {
user[playerid][jSex] = 2;
}
}
return 0 ;
}
|
|
both are equally to learn. For bigger comunites, MySQL is suggested while SQLite is inbuild with PAWNO. SQLIte does not need any server to use while for MySQL you will neeed a MySQL server. I guess SQLite's syntax is a lil bit easy than MySQL.
|