Gives people the ability to use certain commands based on if they are in a setup file under admins. Ive attached my setup file so you can see what i mean by the file.
DarkTimes is acutally more experinced then me, I think it would make sence to just let him do it. On the other hand i had fun making the little bit i done already. Anyway, DarkTimes - I think you should add an admin option like i have in my LFS Admin and Race Rotator program. It makes life a little easier, and is a handy extra option.
Hahaha, I do agree though. Programming wouldnt be fun if you didnt sit there countless hours and then finally achive something. When i get this code finally done, I shall throw a party and your all invited
Like you say enough spam, Time to code and then sleep
Correct above post. The files that are deleted on your HDD are still there, Just the HDD marks the space where them files are as free. When something is writtin to the HDD that space will be avalable to save data, When it saves data the old data is just overwrittin, So you dont ever therotically delete somethng.
Heh, You make it look so easy. Thanks for this. I dunno if it makes sence, but im incapable of copying code and being happy with it. Just keeps playing on my mind, If they can do it, I can. For that reason i get like this. But anyway, Thank you!
OK, Thats strange then. I also have tried loads of different ways too. This is one way i coded my self but after looking at your tutorial. Looks bad, but works(JUST!):
private void RecieveWorker() { byte[] buffer = new byte[MaxBuffer]; int BytesRecieved = 0; int CurrentPacketSize = 0; while (!_exit) { try { BytesRecieved = Client.Receive(buffer); } catch { } if (BytesRecieved == 0) continue; CurrentPacketSize = buffer[0]; while ((CurrentPacketSize != 0) & (BytesRecieved >= CurrentPacketSize)) { byte[] Packet = new byte[CurrentPacketSize]; Buffer.BlockCopy(buffer, 0, Packet, 0, CurrentPacketSize); Array.Clear(buffer, 0, CurrentPacketSize); ProcessPacket(Packet); CurrentPacketSize = buffer[0]; } } }
Probley sucks but it works ok atm,(only with one packet per time though :schwitz Ill see if i can find that bug.
Yes, Exactly. Like me for example, For some reason even know ive looked up on tonnes of stuff. I still cannot recieve more the one packet from LFS due to my programming limitations
So it helps for threads like these to be around.
P.S: DarkTimes - The code in your InSim tutorial for some reason doesnt recieve more then one packet at once.
Acutally, slightly off topic here. Im amazed at this and the way it works. Its like a little .dll file and thats the db. Is this totally portable? Like i wont EVER need to install anything on another pc to run it? Just move the file with the program. If so ill use this a LOT more!
Also, Just tried the following...
Db.Open("C:\\Documents and Settings\\Sean\\Desktop\\test.db");
Db.BeginTransaction();
Db.ExecuteDML("create table test(one varchar(24), two varchar(24))");
Sorry i couldnt help . I cant even find the SQLite server to test it. So i was just looking at the wrapper and trying to relate it back to MySql -Bad idea
hmmm...out of intrest, why do you do .ExecuteDML()? When ever ive worked with database's (MySql/MsSql) ive always done .ExecuteQuery() and that seemed to work fine.(unless of course i was using .Net 3.5 in which case id use LinQ). Seems strange to me why you use that. Unless im totally missing something.....