switch failure? or am i stupid?
#1

Код:
forward switcher(playerid);
public switcher(playerid)
{
new
	a = 2;
switch (a)
{
	case 1:
	{
	Mode[playerid] = 1;
	SendClientMessage(playerid, COLOR_GREY, "MODE 1 MAC10");
	GivePlayerWeapon(playerid, 32,500);
	print("MODE SWITCHED to 1");
	}
	case 2:
	{
	Mode[playerid] = 2;
	SendClientMessage(playerid, COLOR_GREY, "MODE 1 SNIPER?");
	GivePlayerWeapon(playerid, 36,500);
	print("MODE SWITCHED to 2");
	}
	}
}
i want this switch to move back and forth, from 1 to 2, and so far it goes to two. and keeps reseting to number 2, i havnt scripted in a logn time, so... idea? broken? or am i an idiot?
Reply


Messages In This Thread
switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 04:17
Re: switch failure? or am i stupid? - by Crayon - 04.11.2010, 04:19
Re: switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 04:20
Re: switch failure? or am i stupid? - by Crayon - 04.11.2010, 04:21
Re: switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 04:24
Re: switch failure? or am i stupid? - by Miguel - 04.11.2010, 04:25
Re: switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 04:31
Re: switch failure? or am i stupid? - by Crayon - 04.11.2010, 04:35
Re: switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 04:43
Re: switch failure? or am i stupid? - by Crayon - 04.11.2010, 04:47
Re: switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 04:58
Re: switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 05:07
Re: switch failure? or am i stupid? - by pen_theGun - 04.11.2010, 08:03
Re: switch failure? or am i stupid? - by -Rebel Son- - 04.11.2010, 17:52

Forum Jump:


Users browsing this thread: 2 Guest(s)