Can someone tell me what em I doing wrong with this code
#include <acknex.h>
#include <default.c>
#include "t_shooter_weapons.c"
function level_restore ()
{
while (player == 0) {wait (-1);}
if (t_shooter_pistol == 1) {ent_create(pistol_mdl, NULLvector, gun1);}
if (t_shooter_machinegun == 1) {ent_create(machinegun_mdl, NULLvector, gun2);}
if (t_shooter_snipergun == 1) {ent_create(snipergun_mdl, NULLvector, gun3);}
if (t_shooter_muzzle == 1) {ent_create(muzzle_mdl, NULLvector, gun4);}
gun_loaded = 1;
gun_select();
}
/// this is not my main script I'm trying to include it to main from .c file
I also tried this way too:
if (t_shooter_weapon == 1) {ent_create(pistol_mdl,
NULLvector, gun1);}
then this way:
if (t_shooter_weapon == 1) {ent_create(pistol_mdl, NULLvector, weapon1);}
I ran out of options please help.