shape1
shape2
shape3
shape4
shape7
shape8

Не открывается окно регистрацыи


dryaka

Новичок
Пользователь
23.10.2016
0
0
0
Не открывается окно регистрацый на моде Namalsk RP в логах показывает что База даных подключена.

 

dryaka

Новичок
Пользователь
23.10.2016
0
0
0
Elrmrnt-Kritikисправил и не открывается панель регистрацый в моде сторчка

"SELECT * FROM `accounts` WHERE `name` = '%e'"

везде с e а в неготорых местах кода с

Код:
SELECT * FROM `accounts` WHERE `name` = '%s
 

noname_idk

Гуру
Пользователь
19.07.2015
4 046
7
787
0
Скриптер
@dryaka, везде должно быть %s, а не %e. Если не поможет, через printf проверяйте, вызывается ли паблик CheckAccount, какие именно условия проходят.

 

dryaka

Новичок
Пользователь
23.10.2016
0
0
0
А как через printf где он находится 

 

noname_idk

Гуру
Пользователь
19.07.2015
4 046
7
787
0
Скриптер
@dryaka, это функция. Замените LoadPlayerData этим:

public LoadPlayerData(playerid)
{
new rows, fields, temp[10],login_ip[32];
cache_get_data(rows, fields);
printf("%d", rows);
if(rows)
{
printf("Условие 1 вызвано");
cache_get_field_content(0, "id", temp), PLAYER_DATA[playerid][data_ID] = strval (temp);
cache_get_field_content(0, "sex", temp), PLAYER_DATA[playerid][data_SEX] = strval (temp);
cache_get_field_content(0, "skin", temp), PLAYER_DATA[playerid][data_SKIN] = strval (temp);
cache_get_field_content(0, "skinm", temp), PLAYER_DATA[playerid][data_SKINM] = strval (temp);
cache_get_field_content(0, "money", temp), PLAYER_DATA[playerid][data_MONEY] = strval (temp);
cache_get_field_content(0, "lvl", temp), PLAYER_DATA[playerid][data_LVL] = strval (temp);
cache_get_field_content(0, "exp", temp), PLAYER_DATA[playerid][data_EXP] = strval (temp);
cache_get_field_content(0, "member", temp), PLAYER_DATA[playerid][data_MEMBER] = strval (temp);
cache_get_field_content(0, "leader", temp), PLAYER_DATA[playerid][data_LEADER] = strval (temp);
cache_get_field_content(0, "podmember", temp), PLAYER_DATA[playerid][data_PODMEMBER] = strval (temp);
cache_get_field_content(0, "rank", temp), PLAYER_DATA[playerid][data_RANK] = strval (temp);
cache_get_field_content(0, "admlvl", temp), PLAYER_DATA[playerid][data_ADMLVL] = strval (temp);
cache_get_field_content(0, "contry", temp), PLAYER_DATA[playerid][data_CONTRY] = strval (temp);
cache_get_field_content(0, "register_ip", PLAYER_DATA[playerid][data_REGISTER_IP], dbHandle, 32);
cache_get_field_content(0, "login_ip", login_ip, dbHandle, 32);
cache_get_field_content(0, "email", PLAYER_DATA[playerid][data_EMAIL], dbHandle, 50);
cache_get_field_content(0, "regdate_day", temp), PLAYER_DATA[playerid][data_REGDATE_DAY] = strval (temp);
cache_get_field_content(0, "regdate_month", temp), PLAYER_DATA[playerid][data_REGDATE_MONTH] = strval (temp);
cache_get_field_content(0, "regdate_year", temp), PLAYER_DATA[playerid][data_REGDATE_YEAR] = strval (temp);
cache_get_field_content(0, "mute", temp), PLAYER_DATA[playerid][data_MUTE] = strval (temp);
cache_get_field_content(0, "mutetime", temp), PLAYER_DATA[playerid][data_MUTETIME] = strval (temp);
cache_get_field_content(0, "warn", temp), PLAYER_DATA[playerid][data_WARN] = strval (temp);
cache_get_field_content(0, "warntime", temp), PLAYER_DATA[playerid][data_WARNTIME] = strval (temp);
cache_get_field_content(0, "salary", temp), PLAYER_DATA[playerid][data_SALARY] = strval (temp);
cache_get_field_content(0, "bank", temp), PLAYER_DATA[playerid][data_BANK] = strval (temp);
cache_get_field_content(0, "licb", temp), PLAYER_DATA[playerid][data_LICB] = strval (temp);
cache_get_field_content(0, "licg", temp), PLAYER_DATA[playerid][data_LICG] = strval (temp);
cache_get_field_content(0, "business", temp), PLAYER_DATA[playerid][data_BUSINESS] = strval (temp);
cache_get_field_content(0, "house", temp), PLAYER_DATA[playerid][data_HOUSE] = strval (temp);
cache_get_field_content(0, "vip", temp), PLAYER_DATA[playerid][data_VIP] = strval (temp);
cache_get_field_content(0, "time", temp), PLAYER_DATA[playerid][data_TIME] = strval (temp);
cache_get_field_content(0, "car_1", temp), PLAYER_DATA[playerid][data_CAR][0] = strval (temp);
cache_get_field_content(0, "carfuel_1", temp), PLAYER_DATA[playerid][data_CARFUEL][0] = strval (temp);
cache_get_field_content(0, "car_color1_1", temp), PLAYER_DATA[playerid][data_CAR_COLOR1][0] = strval (temp);
cache_get_field_content(0, "car_color2_1", temp), PLAYER_DATA[playerid][data_CAR_COLOR2][0] = strval (temp);
cache_get_field_content(0, "car_2", temp), PLAYER_DATA[playerid][data_CAR][1] = strval (temp);
cache_get_field_content(0, "carfuel_2", temp), PLAYER_DATA[playerid][data_CARFUEL][1] = strval (temp);
cache_get_field_content(0, "car_color1_2", temp), PLAYER_DATA[playerid][data_CAR_COLOR1][1] = strval (temp);
cache_get_field_content(0, "car_color2_2", temp), PLAYER_DATA[playerid][data_CAR_COLOR2][1] = strval (temp);
cache_get_field_content(0, "car_3", temp), PLAYER_DATA[playerid][data_CAR][2] = strval (temp);
cache_get_field_content(0, "carfuel_3", temp), PLAYER_DATA[playerid][data_CARFUEL][2] = strval (temp);
cache_get_field_content(0, "car_color1_3", temp), PLAYER_DATA[playerid][data_CAR_COLOR1][2] = strval (temp);
cache_get_field_content(0, "car_color2_3", temp), PLAYER_DATA[playerid][data_CAR_COLOR2][2] = strval (temp);
cache_get_field_content(0, "patr", temp), PLAYER_DATA[playerid][data_PATR] = strval (temp);
cache_get_field_content(0, "drugs", temp), PLAYER_DATA[playerid][data_DRUGS] = strval (temp);
cache_get_field_content(0, "met", temp), PLAYER_DATA[playerid][data_MET] = strval (temp);
cache_get_field_content(0, "wanted", temp), PLAYER_DATA[playerid][data_WANTED] = strval (temp);
cache_get_field_content(0, "zakon", temp), PLAYER_DATA[playerid][data_ZAKON] = strval (temp);
cache_get_field_content(0, "number", temp), PLAYER_DATA[playerid][data_NUMBER] = strval (temp);
cache_get_field_content(0, "number_m", temp), PLAYER_DATA[playerid][data_NUMBER_M] = strval (temp);
cache_get_field_content(0, "jail", temp), PLAYER_DATA[playerid][data_JAIL] = strval (temp);
cache_get_field_content(0, "jailtime", temp), PLAYER_DATA[playerid][data_JAILTIME] = strval (temp);
cache_get_field_content(0, "donate", temp), PLAYER_DATA[playerid][data_DONATE] = strval (temp);
cache_get_field_content(0, "donate_p", temp), PLAYER_DATA[playerid][data_DONATE_P] = strval (temp);
cache_get_field_content(0, "donate_all", temp), PLAYER_DATA[playerid][data_DONATE_ALL] = strval (temp);
cache_get_field_content(0, "phone", temp), PLAYER_DATA[playerid][data_PHONE] = strval (temp);
cache_get_field_content(0, "phonebook", temp), PLAYER_DATA[playerid][data_PHONEBOOK] = strval (temp);
cache_get_field_content(0, "dir", temp), PLAYER_DATA[playerid][data_DIR] = strval (temp);
cache_get_field_content(0, "satiety", temp), PLAYER_DATA[playerid][data_SATIETY] = strval (temp);
cache_get_field_content(0, "promocode", temp), PLAYER_DATA[playerid][data_PROMOCODE] = strval (temp);
cache_get_field_content(0, "hp", temp), PLAYER_DATA[playerid][data_HP] = strval (temp);
cache_get_field_content(0, "arm", temp), PLAYER_DATA[playerid][data_ARM] = strval (temp);
cache_get_field_content(0, "med", temp), PLAYER_DATA[playerid][data_MED] = strval (temp);
cache_get_field_content(0, "spawn", temp), PLAYER_DATA[playerid][data_SPAWN] = strval (temp);
cache_get_field_content(0, "hospital", temp), PLAYER_DATA[playerid][data_HOSPITAL] = strval (temp);
cache_get_field_content(0, "pistol_skill", temp), PLAYER_DATA[playerid][data_PISTOL] = strval (temp);
cache_get_field_content(0, "sdpistol_skill", temp), PLAYER_DATA[playerid][data_SDPISTOL] = strval (temp);
cache_get_field_content(0, "deagle_skill", temp), PLAYER_DATA[playerid][data_DEAGLE] = strval (temp);
cache_get_field_content(0, "shotgun_skill", temp), PLAYER_DATA[playerid][data_SHOTGUN] = strval (temp);
cache_get_field_content(0, "mp5_skill", temp), PLAYER_DATA[playerid][data_MP5] = strval (temp);
cache_get_field_content(0, "ak47_skill", temp), PLAYER_DATA[playerid][data_AK47] = strval (temp);
cache_get_field_content(0, "rifle_skill", temp), PLAYER_DATA[playerid][data_SNIPERRIFLE] = strval (temp);
cache_get_field_content(0, "job", temp), PLAYER_DATA[playerid][data_JOB] = strval (temp);
cache_get_field_content(0, "polit", temp), PLAYER_DATA[playerid][data_POLIT] = strval (temp);
cache_get_field_content(0, "house", temp), PLAYER_DATA[playerid][data_HOUSE] = strval (temp);
cache_get_field_content(0, "business", temp), PLAYER_DATA[playerid][data_BUSINESS] = strval (temp);
cache_get_field_content(0, "kv", temp), PLAYER_DATA[playerid][data_KV] = strval (temp);
cache_get_field_content(0, "jb", temp), PLAYER_DATA[playerid][data_JB] = strval (temp);
cache_get_field_content(0, "ab", temp), PLAYER_DATA[playerid][data_AB] = strval (temp);
cache_get_field_content(0, "padik", temp), PLAYER_DATA[playerid][data_PADIK] = strval (temp);
cache_get_field_content(0, "d_skill", temp), PLAYER_DATA[playerid][data_DSKILL] = strval (temp);
cache_get_field_content(0, "d_exp", temp), PLAYER_DATA[playerid][data_DEXP] = strval (temp);
cache_get_field_content(0, "gun0", temp), PLAYER_DATA[playerid][data_GUN][0] = strval (temp);
cache_get_field_content(0, "gun1", temp), PLAYER_DATA[playerid][data_GUN][1] = strval (temp);
cache_get_field_content(0, "gun2", temp), PLAYER_DATA[playerid][data_GUN][2] = strval (temp);
cache_get_field_content(0, "gun3", temp), PLAYER_DATA[playerid][data_GUN][3] = strval (temp);
cache_get_field_content(0, "gun4", temp), PLAYER_DATA[playerid][data_GUN][4] = strval (temp);
cache_get_field_content(0, "gun5", temp), PLAYER_DATA[playerid][data_GUN][5] = strval (temp);
cache_get_field_content(0, "gun6", temp), PLAYER_DATA[playerid][data_GUN][6] = strval (temp);
cache_get_field_content(0, "gun7", temp), PLAYER_DATA[playerid][data_GUN][7] = strval (temp);
cache_get_field_content(0, "gun8", temp), PLAYER_DATA[playerid][data_GUN][8] = strval (temp);
cache_get_field_content(0, "gun9", temp), PLAYER_DATA[playerid][data_GUN][9] = strval (temp);
cache_get_field_content(0, "gun10", temp), PLAYER_DATA[playerid][data_GUN][10] = strval (temp);
cache_get_field_content(0, "gun11", temp), PLAYER_DATA[playerid][data_GUN][11] = strval (temp);
cache_get_field_content(0, "gun12", temp), PLAYER_DATA[playerid][data_GUN][12] = strval (temp);
cache_get_field_content(0, "ammo0", temp), PLAYER_DATA[playerid][data_AMMO][0] = strval (temp);
cache_get_field_content(0, "ammo1", temp), PLAYER_DATA[playerid][data_AMMO][1] = strval (temp);
cache_get_field_content(0, "ammo2", temp), PLAYER_DATA[playerid][data_AMMO][2] = strval (temp);
cache_get_field_content(0, "ammo3", temp), PLAYER_DATA[playerid][data_AMMO][3] = strval (temp);
cache_get_field_content(0, "ammo4", temp), PLAYER_DATA[playerid][data_AMMO][4] = strval (temp);
cache_get_field_content(0, "ammo5", temp), PLAYER_DATA[playerid][data_AMMO][5] = strval (temp);
cache_get_field_content(0, "ammo6", temp), PLAYER_DATA[playerid][data_AMMO][6] = strval (temp);
cache_get_field_content(0, "ammo7", temp), PLAYER_DATA[playerid][data_AMMO][7] = strval (temp);
cache_get_field_content(0, "ammo8", temp), PLAYER_DATA[playerid][data_AMMO][8] = strval (temp);
cache_get_field_content(0, "ammo9", temp), PLAYER_DATA[playerid][data_AMMO][9] = strval (temp);
cache_get_field_content(0, "ammo10", temp), PLAYER_DATA[playerid][data_AMMO][10] = strval (temp);
cache_get_field_content(0, "ammo11", temp), PLAYER_DATA[playerid][data_AMMO][11] = strval (temp);
cache_get_field_content(0, "ammo12", temp), PLAYER_DATA[playerid][data_AMMO][12] = strval (temp);
cache_get_field_content(0, "golos", temp), PLAYER_DATA[playerid][data_GOLOS] = strval (temp);
cache_get_field_content(0, "polit", temp), PLAYER_DATA[playerid][data_POLIT] = strval (temp);
cache_get_field_content(0, "podarok1", temp), PLAYER_DATA[playerid][data_PODAROK][0] = strval (temp);
cache_get_field_content(0, "podarok2", temp), PLAYER_DATA[playerid][data_PODAROK][1] = strval (temp);
cache_get_field_content(0, "podarok3", temp), PLAYER_DATA[playerid][data_PODAROK][2] = strval (temp);
cache_get_field_content(0, "podarok4", temp), PLAYER_DATA[playerid][data_PODAROK][3] = strval (temp);
cache_get_field_content(0, "podarok5", temp), PLAYER_DATA[playerid][data_PODAROK][4] = strval (temp);
cache_get_field_content(0, "podarok6", temp), PLAYER_DATA[playerid][data_PODAROK][5] = strval (temp);
cache_get_field_content(0, "podarok7", temp), PLAYER_DATA[playerid][data_PODAROK][6] = strval (temp);
cache_get_field_content(0, "podarok8", temp), PLAYER_DATA[playerid][data_PODAROK][7] = strval (temp);


if(PLAYER_DATA[playerid][data_ADMLVL] >= 1 && strfind(PLAYER_DATA[playerid][data_LOGIN_IP], login_ip, true) == -1)
{
EmailCode(playerid, PLAYER_DATA[playerid][data_EMAIL]);
ShowPlayerDialogFix(playerid, dialog_ALOGIN, DIALOG_STYLE_INPUT, "{FFCC00}ALoign", "{FFFFFF}Ia Aao yeaeo?iiiue aa?an aue ioi?aaeai nae?oaiue eia\nAaaaeoa aai a ie?iaa ieioei, ?oiau aaoi?eciaaouny", "OK", "");
return true;
}


new str[145];
if(PLAYER_DATA[playerid][data_ADMLVL] > 1)
{
for(new i = 0; i < 9; i++) TextDrawShowForPlayer(playerid, CheatText);
format(str,sizeof(str),"[A] Aaieieno?aoi? %s (%s) [admlvl: %d] aaoi?eciaaeny ia na?aa?a",PLAYER_DATA[playerid][data_NAME],PLAYER_DATA[playerid][data_LOGIN_IP],PLAYER_DATA[playerid][data_ADMLVL]);
SendAdminMessage(COLOR_AC,str);
}



DeletePVar(playerid,"player_auth");
PLAYER_DATA[playerid][data_LOGGED] = true;
CancelSelectTextDraw(playerid);
TogglePlayerControllable(playerid, true);

SpawnPlayerAC(playerid);

}
else
{
printf("Условие 2 вызвано");
new wrongtext[145];
if (GetPVarInt(playerid, "WrongPassword") == 3) return Kick(playerid);
SetPVarInt(playerid, "WrongPassword", GetPVarInt ( playerid, "WrongPassword") + 1);
format(wrongtext,sizeof(wrongtext),"Au aaaee iai?aaeeuiue ia?ieu! Inoaeinu iiiuoie %d/3",GetPVarInt(playerid,"WrongPassword"));
SendClientMessage(playerid, 0xFF333300, wrongtext);
Dialog_PLAYER_LOGIN(playerid);
}
return true;
}

И в stock Dialog_PLAYER_LOGIN:

Код:
printf("Код 3 сработал");
 
Последнее редактирование модератором:

noname_idk

Гуру
Пользователь
19.07.2015
4 046
7
787
0
Скриптер
@dryaka, вы %e на %s заменили? В базе данных столбец "name" есть?
 

dryaka

Новичок
Пользователь
23.10.2016
0
0
0
Elrmrnt-Kritik есть столбец "name"

Дополнение к сообщению:
И все %e на %s заменили