Hi everyone,I'm pretty new here and I'm having a problem with the send_string command.I'm trying to send a string input from the client to the server so it can store it in a file:
CIENT SIDE:
STRING* temp1_str = "#8";
STRING* temp2_str = "#8";
function acc_sett_send() //activated when button pressed
{
if ((str_cmpni(temp1_str, " ") == 0) && (str_cmpni (temp2_str, " ") == 0))
{
send_string(temp1_str);
send_string(temp2_str);
}
else
{
error("You must fill both slots"); //temporary msg
}
SERVER SIDE:
STRING* temp1_str = "default";
STRING* temp2_str = "default";
function on_server_event(void* str,var id)
{
while(event_type == EVENT_STRING)
{
var acchandle = file_open_write("somefolder//new.txt");
file_str_write(acchandle,temp1_str);// writes the files to a new folder
file_str_write(acchandle,temp2_str);
file_close (acchandle);
wait(1);
}
}
I'd appreciate some help and some clarifiement.
edit:the string is sent but it's not updated on the server side.Is there something i haven't already pinpointed or what?
Sieg.
Last edited by Sieg; 06/10/10 13:16.