Raised This Month: $51 Target: $400
 12% 

Tempest Array help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadowdragon
Senior Member
Join Date: Dec 2012
Old 01-14-2015 , 08:25   Tempest Array help
Reply With Quote #1

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(client2);
            
TE_SetupBeamFollow(entStringToInt(trail_Items[i][0]), StringToInt(trail_Items[i][0]), 3.52.00.20, {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 008must be a constant expressionassumed zero 
the problem is to do with argument 2/3
PHP Code:
StringToInt(trail_Items[i][0]), StringToInt(trail_Items[i][0]) 
Thanks.
__________________
Sorry for my poor English!
________________________________
I can do CSS/CSGO plugin request for little money!

Last edited by shadowdragon; 01-14-2015 at 08:26.
shadowdragon is offline
The1Speck
SourceMod Donor
Join Date: Oct 2014
Location: USA
Old 01-14-2015 , 11:19   Re: Tempest Array help
Reply With Quote #2

Maybe examining the sourcecode for alongub's Trails plugin will help
https://forums.alliedmods.net/showthread.php?t=208126
__________________

Add me on Steam for personal inquiries or direct assistance.
The1Speck is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode