Raised This Month: $ Target: $400
 0% 

set_task problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-29-2017 , 12:33   Re: set_task problem
Reply With Quote #4

TBagT's method will work. But I would make sure to tag the Game_Start functions origins parameter with the 'Float' tag.

PHP Code:
public Test() 
{
    new 
FloatvOrigin];
    
vOrigin] = 1.2;
    
vOrigin] = 3.4;
    
vOrigin] = 5.6;
    
set_task5.0 "Game_Start" vOrigin sizeofvOrigin ) );
}

public 
Game_Start( const Float:origins[ ] ) 
{
    
server_print"%f %f %f" origins] , origins] ,origins] );

Output:
Code:
1.200000 3.400000 5.599999
__________________

Last edited by Bugsy; 07-29-2017 at 12:34.
Bugsy is offline
 



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 23:00.


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