Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Игровые автоматы работают 1 раз.

Статус
В этой теме нельзя размещать новые ответы.

Zeka_Peka228

Умник
Вырезал систему игровых автоматов с какого-то мода(на ДРП похож еще, не реклама), так вот.
Когда ввожу команду
PHP:
if(!strcmp(cmd,"/casinoueda",true))
		{
		if(PlayerInfo[playerid][pMoney] < 2000) return SendClientMessage(playerid, COLOR_GREY, "У вас должно быть как минимум 2000$ с собой!");
		if(GetPVarInt(playerid,"UseCasino")) return SendClientMessage(playerid, COLOR_GREY, "Вы уже играете в казино!");
		SetPVarInt(playerid,"UseCasino",1);
		Slots[playerid][0] = random(2);
		Slots[playerid][1] = random(2);
		Slots[playerid][2] = random(2);
		ShowPlayerSlots(playerid,Slots[playerid][0],Slots[playerid][1],Slots[playerid][2]);
		TextDrawShowForPlayer(playerid,CasinoDraw[0]);
		TextDrawShowForPlayer(playerid,CasinoDraw[1]);
		TextDrawShowForPlayer(playerid,CasinoDraw[2]);
		TextDrawShowForPlayer(playerid,CasinoDraw[3]);
		TextDrawShowForPlayer(playerid,CasinoDraw[4]);
		TextDrawShowForPlayer(playerid,CasinoDraw[5]);
		TextDrawShowForPlayer(playerid,CasinoDraw[6]);
		TextDrawShowForPlayer(playerid,CasinoDraw[7]);
		TextDrawShowForPlayer(playerid,CasinoDraw[8]);
		TextDrawShowForPlayer(playerid,CasinoDraw[9]);
		TextDrawShowForPlayer(playerid,CasinoDraw[10]);
		TextDrawShowForPlayer(playerid,CasinoDraw[11]);
		TextDrawShowForPlayer(playerid,CasinoDraw[12]);
		TextDrawShowForPlayer(playerid,CasinoDraw[13]);
		TextDrawShowForPlayer(playerid,CasinoDraw[14]);
		PlayerInfo[playerid][pMoney] -= 2000;
		SetPVarInt(playerid,"BET",2000);
		SetPVarInt(playerid,"BALANCE",2000);
		new strin [280];
		format(strin,sizeof(strin),"~g~BALANCE: %d$~n~CTABKA: %d$",GetPVarInt(playerid,"BALANCE"),GetPVarInt(playerid,"BET"));
		TextDrawSetString(CasinoDraw[10], strin);
		SelectTextDraw(playerid, COLOR_RED);
		return 1;
	}
Все тексдравы мне показывает и вообще все отлично, даже когда я нажимаю 1 раз на старт идет рандом, НО КОГДА я нажимаю играть снова, то ничего не происходит...
И еще, там типо должно писать мне мол Loser: или Win, но мне ниче не пишет даже когда первый раз играю.
PHP:
stock Gambler(playerid) {
	if(Gambling[playerid] != G_STATE_GAMBLING) {
		KillTimer(SlotTimer[playerid]);
		SlotTimer[playerid] = -1;
		Gambling[playerid] = G_STATE_NOT_GAMBLING;
		return false;
	}
	SlotCounter[playerid] -= 1;
	new slot = SlotCounter[playerid];
	if(slot < 10) Slots[playerid][2]+=random(3)+1;
	else if(slot < 20) {
		Slots[playerid][1]+=random(3)+1;
		Slots[playerid][2]+=random(3)+1;
	} else {
		Slots[playerid][0]+=random(3)+1;
		Slots[playerid][1]+=random(3)+1;
		Slots[playerid][2]+=random(3)+1;
	}
	if(Slots[playerid][0] >= 6) Slots[playerid][0] = 0;
	if(Slots[playerid][1] >= 6) Slots[playerid][1] = 0;
	if(Slots[playerid][2] >= 6) Slots[playerid][2] = 0;
	ShowPlayerSlots(playerid,Slots[playerid][0],Slots[playerid][1],Slots[playerid][2]);
	if(SlotCounter[playerid] == 0) {
		KillTimer(SlotTimer[playerid]);
		SlotTimer[playerid] = -1;
		Gambling[playerid] = G_STATE_DISPLAY;
		SetTimerEx("PlayAgainTimer",600,false,"i",playerid);
		if(Slots[playerid][0] == Slots[playerid][1] && Slots[playerid][0] == Slots[playerid][2]) {
			new Multiplier=Random(2000,12000);
			switch(Slots[playerid][0]) {
   			case 0: Multiplier = 2;    // Cherries
			case 1: Multiplier = 4;   // Grapes
			case 2: Multiplier = 6;   // 69's
			case 3: Multiplier = 8;   // Bells
			case 4: Multiplier = 10;  // Bar
			case 5: Multiplier = 12;  // Double Bars
			}
   			new money = GetPVarInt(playerid,"BET") * Multiplier;
			new str[128];
			format(str,sizeof(str),"~w~Winner: ~g~+%d$~w~!~n~_",money);
			GameTextForPlayer(playerid,str,4000,4);
			SetPVarInt(playerid,"BALANCE",GetPVarInt(playerid,"BALANCE")+money);
			Slots[playerid][0] = random(5);
			Slots[playerid][1] = random(5);
			Slots[playerid][2] = random(5);
			new mes [280];
			format(mes,sizeof(mes),"~g~BALANCE: %d$~n~CTABKA: %d$",GetPVarInt(playerid,"BALANCE"),GetPVarInt(playerid,"BET"));
			TextDrawSetString(CasinoDraw[10], mes);
		} else {
			if(Slots[playerid][0] == Slots[playerid][1] || Slots[playerid][1] == Slots[playerid][2] || Slots[playerid][0] == Slots[playerid][2]) {
				new str[128];
				format(str,sizeof(str),"~w~Loser: ~r~-%d$~w~!~n~_",GetPVarInt(playerid,"BET"));
				GameTextForPlayer(playerid,str,4000,4); }
		}
		return true;
	}
	return false;
}
stock PlayAgainTimer(playerid) ExitPlayerFromSlotMachine(playerid);
stock Random(min, max)
{
	new a = random(max - min) + min;
	return a;
}
Помогите плизз, с меня +

Скриншоты:

 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу