SA-MP Forums Archive
[Ajuda] O Inventario enche todo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] O Inventario enche todo (/showthread.php?tid=639006)



O Inventario enche todo - Lucas_Rocha - 10.08.2017

galera , to tentando criar esse sistema de comprar jetpack , pуrem quando ele compra o inventario fica cheio de jetpack
ajudem pfv


pawn Код:
new jeeet = 370;
            SendClientMessage(playerid, COLOR_LIGHTRED, "{F7FF00}Vocк Comprou {15FF00}Jetpack(Permanente) !");
            SendClientMessage(playerid, COLOR_LIGHTRED, "{F7FF00}{287940}Preзo : {00FF4D}5.900 Cash");
            SendClientMessage(playerid, COLOR_LIGHTRED, "{274B24}Aviso : Tire uma Print para nгo houver nenhum problema !");
            PlayerInfo[playerid][pJet] = 1;
            PlayerInfo[playerid][pCash] -= 5900;
            for(new i=0; i<75; i++)
            {
            if(InventarioInfo[playerid][i][iSlot] == 19382)
            InventarioInfo[playerid][i][iSlot] = jeeet;
            InventarioInfo[playerid][i][iUnidades] = 1;



Re: O Inventario enche todo - Carlos001 - 10.08.2017

Quote:

for(new i=0; i<75; i++)
{

jб da pra Imaginar ne?...


Re: O Inventario enche todo - rodrigo147 - 10.08.2017

Passa skype pra vc me ajudar num bug do inventбrio?
Код:
CMD:comprarjetpack(playerid)
	{
			if(GetPlayerMoney(playerid) >= 200000)
			{
			for(new i = 0; i<75; i++)
			{
			if(InventarioInfo[playerid][i][iSlot] == 19382)
			{
				InventarioInfo[playerid][i][iSlot] = 370;
				InventarioInfo[playerid][i][iUnidades] = 1;
				SendClientMessage(playerid, -1, "Vocк comprou um {00FFFF}Jetpack{FFFFFF} por {33AA33}$200.000{FFFFFF}!");
				return 1;
				}
			}
		}
		else
		{
		SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo tem dinheiro suficente!");
	}
	return 1;
}