Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (Te duci la pInfo, si definesti pGender)
- #define pGenderx
- function Update(playerid, type) {
- if(IsPlayerConnected(playerid)) {
- new var[120];
- switch(type) {
- case pGenderx: format(var, sizeof(var), "UPDATE `users` SET `Gender`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pGender], PlayerInfo[playerid][pSQLID]);
- return 1;
- }
- //te duci la loadplayeraccount sau cum il ai tu definit
- PlayerInfo[playerid][pGender] = cache_get_field_content_int(0, "Gender", SQL);
- //
- Dialog:DIALOG_GENDER(playerid, response):
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Inregistrare", "{FFFFFF}Precizeaza sexul pe care il are caracter-ul tau", "Barbat", "Femeie");
- }
- if(response)
- {
- PlayerInfo[playerid][pGender] = 1;
- Update(playerid, pGenderx);
- //SetPlayerSkin(playerid, 184); (skin-ul il setezi tu, nu stiu cum il ai definit)
- PlayerInfo[playerid][pGender] = 184;
- Update(playerid, pGenderx);
- Dialog_Show(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, ">> Seteaza un E-mail", "Pentru a fi la curent cu tot ce se intampla cu acest server, te rugam sa introduci un e-mail", "Set", "Inchide");
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pSex] = 2;
- Update(playerid, pGenderx);
- //SetPlayerSkin(playerid, 226); (skin-ul il setezi tu, nu stiu cum il ai definit)
- PlayerInfo[playerid][pGender] = 226;
- Update(playerid, pGenderx);
- Dialog_Show(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, ">> Seteaza un E-mail", "Pentru a fi la curent cu tot ce se intampla cu acest server, te rugam sa introduci un e-mail", "Set", "Inchide");
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement