02.09.2016, 21:03
PHP код:
stock ForceDrop(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
for(new i; i < sizeof(ItemInfo); i++)
{
if(PlayerHasItem(playerid, ItemInfo[i][Item_Name])) // LINE IN ERROR
{
CreateDrop(ItemInfo[i][Item_ID], X+random(3), Y+random(5), Z);
}
}
return 1;
}