Question

Здравствуйте Скриптеры, у меня к вам вопрос, странный, лично для меня. Как у меня слетает лидерка при перезаходи, чекнул код CMD, всё в порядке, или может я слепой и не вижу сохранение аккаунта. Помогите.

CMD:setleader(playerid, params[])
{
	if(PI[playerid][pAdmin] < 12) return SendClientMessage(playerid, COLOR_GREY, "Ó âàñ íåò äîñòóïà!");
	{
		if(AdminLogged[playerid] == false) return SendClientMessage(playerid, COLOR_GREY, YouAreNotLoggedInAsAdmin);
		if(sscanf(params, "u", params[0])) return SendClientMessage(playerid, VAGOS_COLOR, "• [ Ïîäñêàçêà ] {ffffff}Ââåäèòå: /setleader [id èãðîêà]");
		if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, COLOR_GREY, PlayerIsNotOnline);
		if(PlayerLogged[params[0]] == false) return SendClientMessage(playerid, COLOR_GREY, PlayerIsNotAuthorized);
		if(IsPlayerInAnyVehicle(params[0])) return SendClientMessage(playerid, COLOR_GREY, "Èãðîê íå äîëæåí íàõîäèòüñÿ â òðàíñïîðòå!");
		if(PI[params[0]][pLevel] < 3) return SendClientMessage(playerid, COLOR_GREY, "Ó èãðîêà íåòó 3 óðîâíÿ!");
		//if((PI[params[0]][pAdmin] >= 1 && PI[params[0]][pAdmin] <= 5) && PI[playerid][pAdmin] != 6) return SendClientMessage(playerid, COLOR_GREY, "Àäìèíèñòðàòîðà íåëüçÿ ñòàâèòü íà ïîñò ëèäåðà!");
		//if(PI[playerid][pAdmin] != 6 && PI[params[0]][pAdmin] == 6) return SendClientMessage(playerid, COLOR_GREY, "Àäìèíèñòðàòîðà íåëüçÿ ñòàâèòü íà ïîñò ëèäåðà!");
		if(PI[params[0]][pTempLeader]) return SendClientMessage(playerid, COLOR_GREY, "Ñíà÷àëà ñíèìèòå ñ ñåáÿ ïðàâà âðåìåííîãî ëèäåðà!");
		if(PI[params[0]][pLeader])
		{
			if(IsDonateAdmin[playerid]) return SendMes(playerid, COLOR_GREY, "Âû íå ìîæåòå ñíèìàòü ñ ëèäåðêè!");
			LeaveFractionPlayer(params[0]);
			SendMes(playerid, COLOR_BLUE, "Âû ñíÿëè %s ñ äîëæíîñòè ëèäåðà îðãàíèçàöèè",GetName(params[0]));
			SendMes(params[0], COLOR_BLUE, "Àäìèíèñòðàòîð %s ñíÿë âàñ ñ äîëæíîñòè ëèäåðà îðãàíèçàöèè", GetName(playerid));
		}
		else
		{
			if(PI[params[0]][pLeader] > 0) return SendClientMessage(playerid, COLOR_GREY, "Èãðîê ëèäåð äðóãîé îðãàíèçàöèè!");
			if(PI[params[0]][pMember] > 0) return SendClientMessage(playerid, COLOR_GREY, "Èãðîê íàõîäèòüñÿ â äðóãîé îðãàíèçàöèè!");
			new str[90], str2[600];
			for(new i = 1; i < MAX_FRACTIONS; i++)
			{
				format(str, sizeof(str), "¹%i - %s\n", i, Fraction_Name[i]);
				strcat(str2, str);
			}
			SetPVarInt(playerid, "actplayerid", params[0]);
			ShowPlayerDialog(playerid, D_FRACMENU, 2, "{ffcc00}Îðãàíèçàöèè", str2, "Ïðèíÿòü", "Îòìåíà");
		}
	}
	return 1;

 

Edited by Arseny

Share this post


Link to post

1 answer to this question

  • 0

Скопируй код на русской раскладке. В бд сохраняется лидер?

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • tellarionterceiro
      By tellarionterceiro
      Привет, знает кто может быть как можно создать на карте гангзоны чёрного цвета?

      https://prnt.sc/fSq26C5kj2Xc