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

Get variable value from function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Touch
Member
Join Date: Apr 2010
Location: Ukraine
Old 12-15-2010 , 08:02   Get variable value from function
Reply With Quote #1

Hello!
Please tell me how to get data from a variable in the function of player_spawn?

Need to variable rec2 work in player_spawn.


Function

PHP Code:
public OnSocketReceive(Handle:socketString:rec[], const dataSizeany:arg)
{
decl String:rec2[1024];
strcopy(receiveData2sizeof(rec2), rec[250]);

Player_spawn
PHP Code:
public Action:Player_Spawn(Handle:event, const String:name[], bool:dontBroadcast)

PrintToServer(rec2); // ERROR, rec2 

Thanks!
Touch is offline
Send a message via Skype™ to Touch
 



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 11:44.


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