PInventory
#1

Код:
new Logs;
(64) : warning 204: symbol is assigned a value that is never used: "Logs"
Код:
public OnGameModeInit()
{

    new Logs = Create_Item("Logs");
}
(850) : error 017: undefined symbol "Logs"
(851) : error 017: undefined symbol "Logs"
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
        if (GetPlayerWeapon(playerid) == 9)
        {
		new rand = random(2);
		{
   			switch(rand)
			{
			case 0:  Add_Item(playerid, Logs);
			case 1:  Add_Item(playerid, Logs);
                        }
                 }
         }
         return 0;
}
I'm using this plugin https://sampforum.blast.hk/showthread.php?tid=280696 what am I doing wrong here?
Reply
#2

bump
Reply
#3

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
        if (GetPlayerWeapon(playerid) == 9)
        {
                new Logs = Create_Item("Logs");
		new rand = random(2);
		{
   			switch(rand)
			{
			case 0:  Add_Item(playerid, Logs);
			case 1:  Add_Item(playerid, Logs);
                        }
                 }
         }
         return 0;
}
And delete this
Код:
new Logs = Create_Item("Logs");
from
public OnGameModeInit()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)