Lenton Posted December 23, 2008 Author Share Posted December 23, 2008 How would I send an .INI value to the client from the server?Thanks for your help. Link to comment Share on other sites More sharing options...
AdrianC Posted December 23, 2008 Share Posted December 23, 2008 In scripting, its Call Getvar, so I guess that works in source too. Link to comment Share on other sites More sharing options...
Lenton Posted December 23, 2008 Author Share Posted December 23, 2008 Yer it would but how would I use it? Link to comment Share on other sites More sharing options...
AdrianC Posted December 23, 2008 Share Posted December 23, 2008 Variable =Â GetVar("File.ini", "Header", "VariableName") Link to comment Share on other sites More sharing options...
Lenton Posted December 23, 2008 Author Share Posted December 23, 2008 I have EE 1.0, will that function still work? Link to comment Share on other sites More sharing options...
AdrianC Posted December 23, 2008 Share Posted December 23, 2008 It might, I dunno, wasn't scripting when TE was being used. Link to comment Share on other sites More sharing options...
Lenton Posted December 23, 2008 Author Share Posted December 23, 2008 Hold on does this just get a value from a file??Or does it take the value from the server? Link to comment Share on other sites More sharing options...
AdrianC Posted December 23, 2008 Share Posted December 23, 2008 Gets a value from a .ini file which you saved in the server. Link to comment Share on other sites More sharing options...
Lenton Posted December 23, 2008 Author Share Posted December 23, 2008 I can use ReadINI for that. I want to know how to send information from the server to the client using packets. Link to comment Share on other sites More sharing options...
AdrianC Posted December 23, 2008 Share Posted December 23, 2008 Well you said .ini files, so I gave you GetVar. I don't do source, so dunno. Link to comment Share on other sites More sharing options...
Lenton Posted December 23, 2008 Author Share Posted December 23, 2008 Well in my first post I said:@Lenton:> How would I send an .INI value to the client from the server?I didn't even say how to get an .ini value, only to send it from the server to client.Thanks anyway. Link to comment Share on other sites More sharing options...
Guest Posted December 23, 2008 Share Posted December 23, 2008 In source you do this.Client:```Call SendData("case_name" & SEP_CHAR & GetPlayerName(MyIndex) & END_CHAR)```Server: (in Sub modHandleData)```Case "case_name"PutVar App.Path & "\Accounts\" & Parse(1) & "_Test.ini", "HEADER", "1", Parse(1)Exit Sub```Put the client code in a message box. And test this code here. Then if you go to the Accounts folder you should See "tehg00n_Test.ini". Well, will say your name but yeah. Then inside should look something like this.```[HEADER]1=tehg00n```This example shows you just about everything you need to know. :3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now