Dialog won't give player a gun
#1

Ok, So in my script I have a NG locker, I wanted to add more guns and I copied and pasted Mace but replaces the Gun IDS and the List item. I got 0 erros but when I went in game and went to get my new gun it didn't give it, Also there are weapons in between them and I know the List Item is correct 100%

Origional Code
Код:
if(listitem == 0) // Mace
		    {
		        if(PlayerInfo[playerid][pCash] < 0)
				{
					SendClientMessage(playerid, COLOR_GREY, "   You cant afford that !");
					TogglePlayerControllable(playerid,1);
				 	return 1;
			 	}
			 	else
		 		{
				 	GivePlayerWeapon(playerid, 41, 999999);
				 	PlayerInfo[playerid][pGun9] = 41;
				 	TogglePlayerControllable(playerid,1);
			 	}
			}
Code after I edited it
Код:
 if(listitem == 12) //Spistol
			{
			    if(PlayerInfo[playerid][pCash] < 800)
				{
					SendClientMessage(playerid, COLOR_GREY, "   You cant afford that !");
					TogglePlayerControllable(playerid,1);
					return 1;
				}
				else
				{
	        		GivePlayerWeapon(playerid, 23, 999999);
					PlayerInfo[playerid][pGun2] = 23;
	        		TogglePlayerControllable(playerid,1);
        		}
			}
Reply


Messages In This Thread
Dialog won't give player a gun - by fanta291327 - 21.12.2013, 03:03
Re: Dialog won't give player a gun - by Emmet_ - 21.12.2013, 03:10
Re: Dialog won't give player a gun - by fanta291327 - 21.12.2013, 03:11
Re: Dialog won't give player a gun - by ron_tim - 21.12.2013, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)