killerege
Новичок
Парни, нужно установить бонус на сервер, попытался самостоятельно вписать, но в итоге все тупо были 0 лвл и было 0 денег, помогите правильно вписать и туда ли я вообще вписывают ?)
---------- Сообщение добавлено в 10:15 ---------- Предыдущее сообщение добавлено в 10:13 ----------
по запросу [level] = 1 выдаёт ещё вот этот stock в public`e OnPlayerClickPlayerTextDraw(playerid, PlayerText
layertextid
---------- Сообщение добавлено в 10:15 ---------- Предыдущее сообщение добавлено в 10:15 ----------
Скорее всего я не там ищу.Варианты у меня иссякли (
PHP:
public OnLogin(i)
{
new rows, fields, string[180];
cache_get_data(rows, fields);
if(!rows)
{
if(GetPVarInt(i, "PasswordNot") > 1)
{
SendClientMessage(i, Wisdom_RED, "Вы ввели неверный пароль 3 раза подряд.");
KickD(i, "Для выхода из игры пропишите \"/q\" или \"/quit\"");
return true;
}
SetPVarInt(i, "PasswordNot", GetPVarInt(i, "PasswordNot") + 1);
FormatClientMessage(i, Wisdom_RED, "Вы ввели неверный пароль. [%i/3]", GetPVarInt(i, "PasswordNot"));
format(string, sizeof(string), "{F0F0F0}Добро пожаловать, {BD9C6F}%s{F0F0F0}, данный аккаунт зарегистрирован.\n\n - Для авторизации ведите ваш пароль в нижнее окно:",User[i][Name]);
return ShowPlayerDialogEx(i, D_LOGIN, 3, "{BD9C6F}Авторизация", string, "Вход", "Выход");
}
new ip[16];
GetPlayerIp(i, ip, sizeof(ip));
cache_get_field_content(0, "IpVhod", User[i][IpVhod], DATABASE, 16);
cache_get_field_content(0, "KeyIp",User[i][KeyIp],DATABASE,16);
User[i][CheckIp] = cache_get_field_content_int(0,"CheckIp");
if(User[i][CheckIp] && strcmp(ip, User[i][IpVhod], false) != 0)
{
ShowPlayerDialogEx(i, 1000, DIALOG_STYLE_PASSWORD, "{BD9C6F}Ключ безопасности", "{F0F0F0}Ваш IP адрес сменился. Введите Ваш ключ безопасности в нижнее окно:", "OK", "");
return true;
}
/*cache_get_field_content(0, "GoogleCode", User[i][GoogleCode], DATABASE, 17);
User[i][CheckGoogle] = cache_get_field_content_int(0, "CheckGoogle");
if(User[i][CheckGoogle] != -1)
{
//new codefromphone = GoogleAuthenticatorCode(User[i][GoogleCode], gettime());
if(User[i][CheckGoogle] != codefromphone) return ShowPlayerDialogEx(i, 1001, DIALOG_STYLE_INPUT, "{BD9C6F}Google аутентификация", "{F0F0F0}Введите Ваш уникальный код с мобильного приложения в нижнее окно:", "OK", "");
}*/
User[i][Sex] = cache_get_field_content_int(0,"Sex");
User[i][Skin] = cache_get_field_content_int(0,"Skin");
cache_get_field_content(0, "Mail",User[i][Mail],DATABASE,64);
User[i][Cash] = cache_get_field_content_int(0,"Cash");
User[i][Donate] = cache_get_field_content_int(0, "FirstDonate");
User[i][Level] = cache_get_field_content_int(0,"Level");
User[i][UID] = cache_get_field_content_int(0,"ID");
User[i][PayDay] = cache_get_field_content_int(0,"PayDay");
User[i][Exp] = cache_get_field_content_int(0,"Exp");
User[i][Bank] = cache_get_field_content_int(0,"Bank");
User[i][Leader] = cache_get_field_content_int(0,"Leader");
User[i][Member] = cache_get_field_content_int(0,"Member");
User[i][Model] = cache_get_field_content_int(0,"Model");
User[i][Rank] = cache_get_field_content_int(0,"Rank");
User[i][Kills] = cache_get_field_content_int(0,"Kills");
User[i][Deaths] = cache_get_field_content_int(0,"Deaths");
User[i][Wanted] = cache_get_field_content_int(0,"Wanted"), SetPlayerWantedLevel(i, User[i][Wanted]);
cache_get_field_content(0, "DataReg", User[i][DataReg], DATABASE, 20);
cache_get_field_content(0, "IpReg",User[i][IpReg],DATABASE,16);
cache_get_field_content(0, "Vhod", User[i][Vhod], DATABASE, 20);
cache_get_field_content(0, "Crimes",User[i][Crimes],DATABASE,32);
User[i][JailTime] = cache_get_field_content_int(0,"JailTime");
User[i][MestoJail] = cache_get_field_content_int(0,"MestoJail");
User[i][Arested] = cache_get_field_content_int(0,"Arrested");
User[i][Mute] = cache_get_field_content_int(0,"Mute");
cache_get_field_content(0, "Lics", User[i][Lics], DATABASE);
User[i][Phone] = cache_get_field_content_int(0,"Phone");
cache_get_field_content(0, "Texts",User[i][UTexts], DATABASE, 16);
User[i][Health] = cache_get_field_content_float(0,"Health"), SetHealth(i,User[i][Health]);
User[i][Locked] = cache_get_field_content_int(0,"Locked");
cache_get_field_content(0, "Warns",User[i][Warns],DATABASE,7);
cache_get_field_content(0, "Drugs",User[i][Drugs],DATABASE,19);
cache_get_field_content(0, "Upgrades",User[i][Upgrades],DATABASE,19);
cache_get_field_content(0, "GunSkills",User[i][GunSkills],DATABASE,30);
User[i][PayDayCash] = cache_get_field_content_int(0,"PayDayCash");
User[i][Addiction][0] = cache_get_field_content_int(0,"Addiction");
User[i][Addiction][1] = cache_get_field_content_int(0,"Addiction2");
User[i][WantedDeaths] = cache_get_field_content_int(0,"WantedDeaths");
User[i][Mats] = cache_get_field_content_int(0,"Mats");
User[i][Debt][0] = cache_get_field_content_int(0,"Debt");
User[i][Debt][1] = cache_get_field_content_int(0,"Debt2");
User[i][Job] = cache_get_field_content_int(0,"Job");
User[i][Obedience] = cache_get_field_content_int(0,"Obedience");
cache_get_field_content(0, "Referal",User[i][Referal],DATABASE,MAX_PLAYER_NAME);
User[i][Station] = 1;
cache_get_field_content(0, "Weapons",User[i][pWeapons],DATABASE, 64);
cache_get_field_content(0, "Settings",User[i][pSettings],DATABASE,32);
cache_get_field_content(0, "OldPosText", User[i][OldPosText], DATABASE, 100);
cache_get_field_content(0, "Inventory", User[i][Inventory], DATABASE, 32);
cache_get_field_content(0, "GunSkinTotal", User[i][GunSkinTotal], DATABASE, 32);
cache_get_field_content(0, "Ammos",User[i][Ammos],DATABASE, 64);
User[i][Satiety] = cache_get_field_content_int(0,"Satiety");
cache_get_field_content(0, "Married",User[i][Married],DATABASE,24);
User[i][Role] = cache_get_field_content_int(0, "Role");
User[i][InGame] = cache_get_field_content_int(0, "InGame");
User[i][FineDebt] = cache_get_field_content_int(0, "FineDebt");
User[i][Fines] = cache_get_field_content_int(0, "Fines");
User[i][Promocode] = cache_get_field_content_int(0, "Promocode");
User[i][ReloggedToday] = cache_get_field_content_int(0, "ReloggedToday");
User[i][ReloggedToday]++;
sscanf(User[i][Lics], "p<,>a<i>[6]", User[i][Lic]);
sscanf(User[i][UTexts], "p<,>a<i>[4]", User[i][Text]);
sscanf(User[i][Warns], "p<,>a<i>[2]", User[i][Warn]);
sscanf(User[i][Drugs], "p<,>a<i>[5]", User[i][Drug]);
sscanf(User[i][Upgrades], "p<,>a<i>[4]", User[i][Upgrade]);
sscanf(User[i][GunSkills], "p<,>a<i>[6]", User[i][GunSkill]);
sscanf(User[i][pWeapons], "p<,>a<i>[11]", User[i][Weapon]);
sscanf(User[i][Ammos], "p<,>a<i>[11]", User[i][Ammo]);
sscanf(User[i][pSettings], "p<,>a<i>[4]", User[i][Settings]);
sscanf(User[i][Inventory], "p<,>a<i>[15]", User[i][InventoryItem]);
sscanf(User[i][GunSkinTotal], "p<,>a<i>[6]", User[i][GunSkin]);
sscanf(User[i][OldPosText], "p<,>ifffii", User[i][OldPosTime], User[i][OldPosX], User[i][OldPosY], User[i][OldPosZ], User[i][OldPosInt], User[i][OldPosVW]);
---------- Сообщение добавлено в 10:15 ---------- Предыдущее сообщение добавлено в 10:13 ----------
по запросу [level] = 1 выдаёт ещё вот этот stock в public`e OnPlayerClickPlayerTextDraw(playerid, PlayerText
PHP:
stock Reset(playerid)
{
STimer[playerid] = -1;
PlayerCuffed[playerid] = 0;
User[playerid][Settings][0] = 0;
User[playerid][Settings][1] = 0;
User[playerid][Settings][2] = 0;
User[playerid][Settings][3] = 0;
VehTest[playerid] = -1;
User[playerid][Settings][3] = 0;
User[playerid][Skin] = 0;
User[playerid][Sex] = 0;
User[playerid][Cash] = 0;
User[playerid][Level] = 1;
User[playerid][Login] = 0;
User[playerid][UID] = 0;
User[playerid][PayDay] = 0;
User[playerid][PayDayCash] = 0;
User[playerid][Exp] = 0;
User[playerid][Bank] = 0;
User[playerid][Leader] = 0;
User[playerid][Member] = 0;
User[playerid][Model] = 0;
User[playerid][Rank] = 0;
User[playerid][Kills] = 0;
User[playerid][Obedience] = 0;
User[playerid][Deaths] = 0;
User[playerid][Wanted] = 0;
User[playerid][JailTime] = 0;
User[playerid][Arested] = 0;
User[playerid][MestoJail] = 0;
User[playerid][Mute] = 0;
User[playerid][Lic][0] = 0;
User[playerid][Lic][1] = 0;
User[playerid][Lic][2] = 0;
User[playerid][Lic][3] = 0;
User[playerid][Lic][4] = 0;
User[playerid][Lic][5] = 0;
Mobile[playerid] = -1;
CellTime[playerid] = -1;
User[playerid][Phone] = 0;
User[playerid][Text][0] = 0;
User[playerid][Text][1] = 0;
User[playerid][Text][2] = 0;
User[playerid][Text][3] = 0;
User[playerid][Health] = 100;
User[playerid][Job] = 0;
User[playerid][Locked] = 0;
User[playerid][Warn][0] = 0;
User[playerid][Warn][1] = 0;
User[playerid][Drug][0] = 0;
User[playerid][Drug][1] = 0;
User[playerid][Drug][2] = 0;
User[playerid][Drug][3] = 0;
User[playerid][Drug][4] = 0;
User[playerid][Upgrade][0] = 0;
User[playerid][Upgrade][1] = 0;
User[playerid][Upgrade][2] = 0;
User[playerid][GunSkill][0] = 0;
User[playerid][GunSkill][1] = 0;
User[playerid][GunSkill][2] = 0;
User[playerid][GunSkill][3] = 0;
User[playerid][GunSkill][4] = 0;
User[playerid][GunSkill][5] = 0;
User[playerid][Addiction][0] = 0;
User[playerid][Addiction][1] = 0;
User[playerid][Mats] = 0;
User[playerid][Debt][0] = 0;
User[playerid][Debt][1] = 0;
---------- Сообщение добавлено в 10:15 ---------- Предыдущее сообщение добавлено в 10:15 ----------
Скорее всего я не там ищу.Варианты у меня иссякли (
