Need help converting from MySQL R39 to R41
#4

Код:
forward OnPlayerLogin(playerid, tmp[]);
public OnPlayerLogin(playerid, tmp[])
{
	if(!GetPVarInt(playerid, "Logged")) return 1;
	new rows = cache_num_rows();
	if(!rows)
	{
		PlayerLogTries[playerid]++;
		if(PlayerLogTries[playerid] == 4)
		{
			SendClientMessage(playerid,COLOR_RED, "Вы несколько раз ввели неверный пароль! Для выхода из игры введите: {ffffff}/q(uit)");
			return SKick(playerid, 52);
		}
        new string[100];
		format(string, sizeof(string), "{F04245}Вы ввели неверный пароль!\nУ вас осталось {FFFFFF}%d {F04245}попыток", 3 - PlayerLogTries[playerid]);
		ShowPlayerDialog(playerid, D_ERRORPAS, DIALOG_STYLE_MSGBOX, "{FFFFFF}Ошибка", string, "Повтор", "Выйти");
		return 1;
	}
        cache_get_value_int(0, "ID", PI[playerid][pID]);
        cache_get_value(0, "Name", PI[playerid][pName], MAX_PLAYER_NAME);
        cache_get_value_float(0, "X", PI[playerid][pPosX]);
        cache_get_value_float(0, "Y", PI[playerid][pPosY]);
        cache_get_value_float(0, "Z", PI[playerid][pPosZ]);
        return 1;
}
Reply


Messages In This Thread
Need help converting from MySQL R39 to R41 - by RageCraftLV - 17.11.2017, 21:40
Re: Need help converting from MySQL R39 to R41 - by Juvanii - 17.11.2017, 23:22
Re: Need help converting from MySQL R39 to R41 - by RageCraftLV - 18.11.2017, 08:12
Re: Need help converting from MySQL R39 to R41 - by m4karow - 18.11.2017, 08:21
Re: Need help converting from MySQL R39 to R41 - by RageCraftLV - 18.11.2017, 12:06
Re: Need help converting from MySQL R39 to R41 - by m4karow - 18.11.2017, 12:21
Re: Need help converting from MySQL R39 to R41 - by RageCraftLV - 18.11.2017, 12:31

Forum Jump:


Users browsing this thread: 1 Guest(s)