[Plugin] IsKeyDown(vkey) function in PAWN
#21

Quote:
Originally Posted by ******
Посмотреть сообщение
If you do learn a little bit about networking you will realise that the statement about "sockets" in your statement makes no sense - a socket is an IP/PORT combination, and is OS agnostic.

As for client-side plugins, we really need a plugin architecture for those too, so clients only install one program and servers can specify which client-side plugins to run, avoiding the need for players to do anything extra. There would need to be security on the system, but that can be done through a central authorisation server. I might have to look in to this actually - it would make vastly better streamers and existing plugins could be fit to it's architecture. It would also mean a better means of distribution of mods etc.
Would be nice to manage, like every client sided plugin would have a mutex or something and the server could disable and enable specified mutexes'

and for the tcp server and tcp client... do you have a nice link (except ******.com or any other search engines) where some tuts are located about c++ networking?
Reply
#22

I'd like to have that ^

I've tried developing something like it but i never got finished with either side of it, Unfortunately i lost the source for that..
Reply
#23

This won't be popular with a client-side program, but good luck anyway.

I'm gonna wait til SA-MP itself developes these functions. These have been suggested lots of times though but for some reason they're not added. Wish they'd listen to the players a bit more though not just at beta tests.
Reply
#24

Quote:
Originally Posted by Karlip
Посмотреть сообщение
This won't be popular with a client-side program, but good luck anyway.

I'm gonna wait til SA-MP itself developes these functions. These have been suggested lots of times though but for some reason they're not added. Wish they'd listen to the players a bit more though not just at beta tests.
They won't develop sa-mp until Kalcynkas' money is going to drop.. When he runs out of money he will make new contracts (with other companies like serverffs, why do you think the hosted tab was introduced?), and on sa-mp.com you will see "current development: xxx", but for now we are on our own so I think I have to get my ass up and start learning c++ as hard as possible ;]
Reply
#25

Nice plugin! Helped me a lot!
Reply
#26

Maybe you can make public OnPlayerPressKey ?
Reply
#27

okay people I am not able to find any easy&good server<->client examples and hooking to game so for now I cannot build the client app... ;/
Reply
#28

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
yeps for now, I will continue seeking help and tuts and whatever but for now well, it's just our wish to make this work..

And Yes Kyosaur I saw some examples using sockets but I think that is not an option for sa-mp?
And well I always go the hard way eh... That's how I am and So will it Be forever...
But there will come a Time that I Will have good programming experience.. just not now because I am just a guy that's 16 years old and I have never had any IT lessons... ;/ so when I fail, it doesn't matter, I will try again and again, if not now, I will later, if not later, I will try to gain experience...

It was the same story with PAWN but PAWN is easier to manage.
This should be a clear indication that you are no where near ready to be messing with server/clients!


I agree btw, you are choosing the hard way indeed. You might become a good programmer one day like you say, but it wont be any time soon if you continue on your current path! You need to start at the bottom and work your way up so you actually understand what it is you're doing. Age and lessons arent even a factor.
Reply
#29

Is there a linux verison>?
Reply
#30

Quote:
Originally Posted by Robert_Crawford
Посмотреть сообщение
Is there a linux verison>?
No, this plugin is completely reliant on the Win32 API. Even if there was an available linux version, it wouldnt matter as the plugin doesnt work (there is no client).
Reply
#31

Quote:
Originally Posted by Kyosaur
Посмотреть сообщение
This should be a clear indication that you are no where near ready to be messing with server/clients!


I agree btw, you are choosing the hard way indeed. You might become a good programmer one day like you say, but it wont be any time soon if you continue on your current path! You need to start at the bottom and work your way up so you actually understand what it is you're doing. Age and lessons arent even a factor.
If I only had an IT teacher where I could discuss my problems, (and we were at the stage of learning Java or C++) then I think it would be easier to manage any programming language, or am I wrong?
And yes I think I have to read through 10 000 lessons and tuts.

I think I will start reading through http://www.cplusplus.com/doc/tutorial/ <- I don't know how much time it takes, but if I will actually understand everithing what will I be able to do? :P or should I choose a better site for tuts? :>
Reply
#32

Tutorials are generally for those who already know the topic very good and want to expand their knowledge, but if you do not know the basics then you need a book.
Reply
#33

Quote:
Originally Posted by Omega-300
Посмотреть сообщение
Tutorials are generally for those who already know the topic very good and want to expand their knowledge, but if you do not know the basics then you need a book.
No OFF-Topic, but I agree.
Like what Bill Gates says about The_Art_of_Computer_Programming by Donald Knuth: "When you finish to read The Art Of Computer Programming by Donald Knuth and you understand it, just send me a CV ( Curriculum Vitae )."
Reply
#34

okay so I should avoid tutorials for now and get a copy of "C++: A Beginner's Guide, Second Edition" (?)
:P
Sorry for the offtopic but relax guys, cmon the forum would be boring if we did not discuss or help each other
Reply
#35

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
okay so I should avoid tutorials for now and get a copy of "C++: A Beginner's Guide, Second Edition" (?)
:P
Sorry for the offtopic but relax guys, cmon the forum would be boring if we did not discuss or help each other
You could ask people who are capable of helping you to send you a private message...
i would if i knew anything about plugins.
Reply
#36

only for window? No linux one?

EDIT: sorry i di'nt saw previous post.
Reply
#37

Ah I could have found this very useful in Linux. IF someone gets a Linux type of version running that was similar to this I would appreciate it. Oh and thanks anyway OP even though I don't use Windows.
Reply
#38

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
okay so I should avoid tutorials for now and get a copy of "C++: A Beginner's Guide, Second Edition" (?)
:P
Sorry for the offtopic but relax guys, cmon the forum would be boring if we did not discuss or help each other
Not really, the tuts are good ... But you need more and more practice ( and books )
Reply
#39

Read books to program or something liked to a game is completely antagonized. Gamers don't read book :3
Reply
#40

It is only server plugin? o_O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)