Raised This Month: $ Target: $400
 0% 

How to indexed array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-14-2010 , 09:02   Re: How to indexed array
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
That could cause race conditions if amx_test is used by someone else (or the same person; different problem) before it has finished printing.

I believe you can send string through a set_task like:

Code:
set_task(time, "function", id+offset, string, sizeof(string), "a", 3)

public function(yourstring[])
{
    //  . . .
}
You can pass an array and integer to the called function.

PHP Code:
new szText[] = "hi hello";
set_task1.0 "TheFunc" id szText sizeofszText ) , "a" );

public 
TheFuncarrData[] , id )
{
    
client_printid print_chat "Msg=%s" arrData );    

__________________
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 07:14.


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