View Single Post
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