error 079: inconsistent return types (array & non-array)
#3

try this code:
Код:
PickupGun(weaponid);
if(GunObjects[weaponid] != -1)
{
GunObject[i] = CreateDynamicObject(GunObjects[weaponid], X, Y, Z-1, 80.0, 0.0, 0.0, VirtualWorld, -1, -1, 200.0);
}
Код:
stock PickupGun(weaponid)
{
    if (weaponid < 0 || weaponid > 64)
    {
        GunObjects[weaponid] = -1;
    }
    else
    {
        GunObjects[weaponid] = weaponid;
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)