24.09.2018, 21:56
PHP код:
if(GetRNPCHealth(damagedid) < 0.0 && !rnpcData[damagedid][RNPC_DEAD])
{
CreateLootsZombie(item[],fPos[0],fPos[1],fPos[2]);
}
Код:
error 017: undefined symbol "item"
PHP код:
function CreateLootsZombie(item[],Float:pXX,Float:pYX,Float:pZX)
{
new strt[128];
lootCount += 1;
Loot[lootCount][xLootdropZ] = pXX;
Loot[lootCount][yLootdropZ] = pYX;
Loot[lootCount][zLootdropZ] = pZX;
Loot[lootCount][AntiDup] = 1;
format(Loot[lootCount][lootDrop], 128, "%s", item);
Loot[lootCount][LootID] = CreateDynamicObject(2907/*DayZSA_SelectObj()*/,pXX+0.3,pYX+float(1),pZX-0.7,0.0,0.0,0.0,-1,-1,-1,1000.0);
format(strt,sizeof(strt),""COL_GREEN"ACTION\n"COL_WHITE"PRESS N");
Loot[lootCount][TextID] = CreateDynamic3DTextLabel(strt,-1,pXX+0.3,pYX+float(1),pZX-0.7,8.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,-1,-1,-1, 8.0);
return 1;
}