Hey all im trying to make a small trail plugin where i can add as many trails as i want to a menu and players can selected them iv already made the selection part and it works fine the only part that does not work is the tempest stocks this is my code it is running inside a while loop when they spawn.
PHP Code:
new ent = GetPlayerWeaponSlot(client, 2);
TE_SetupBeamFollow(ent, StringToInt(trail_Items[i][0]), StringToInt(trail_Items[i][0]), 3.5, 2.0, 0.2, 0, {trail_Items[i][4],trail_Items[i][5],trail_Items[i][6],trail_Items[i][7]});
TE_SendToAll();
and this is the error i get.
PHP Code:
error 008: must be a constant expression; assumed zero
the problem is to do with argument 2/3
PHP Code:
StringToInt(trail_Items[i][0]), StringToInt(trail_Items[i][0])
Thanks.
__________________