Search found 1413 matches

by Ayuto
Wed Sep 30, 2015 12:06 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14403

You need to make it a string. To be more precise: you need to make it a raw string, because you are using backslashes.

Syntax: Select all

OLD_DATABASE = r'C:\Users\my_user\Desktop\asd.sqlite'
Or if you don't use backslashes, you can also use this:

Syntax: Select all

OLD_DATABASE = 'C:/Users/my_user/Desktop/asd.sqlite'
by Ayuto
Tue Sep 29, 2015 9:05 pm
Forum: Whatever
Topic: Odd Request (Splitting string in C++)
Replies: 4
Views: 5378

Just wondering: why do you want to rewrite that in C++? For speed improvements? If yes, I'm interested to know in which situation you want to use it that performance matters.
by Ayuto
Tue Sep 29, 2015 8:58 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14403

Well, the script he made was working for his pickle database. I doubt this is even working with pickle databases that use a different protocol. SQLite3 databases won't work for sure. Try this one instead: from __future__ import with_statement import re # Path to the old database OLD_DATABASE = '...
by Ayuto
Tue Sep 29, 2015 8:08 pm
Forum: Plugin Requests
Topic: GiveCash
Replies: 13
Views: 9912

Yep, it's working for me.
by Ayuto
Tue Sep 29, 2015 12:24 pm
Forum: Plugin Requests
Topic: GiveCash
Replies: 13
Views: 9912

Take a closer look at the code posted by Predz. This is what he suggested:

Syntax: Select all

player.cash = min(player.cash+amount, 16000)
And this is what you have done:

Syntax: Select all

player.cash += min(player.cash+amount, 16000)
There is a little difference between both versions.
by Ayuto
Tue Sep 29, 2015 11:30 am
Forum: Plugin Requests
Topic: GiveCash
Replies: 13
Views: 9912

That's impossible. Please show us the code you are using now.
by Ayuto
Fri Sep 25, 2015 12:03 pm
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 44
Views: 62683

Yeah, this plugin (and the other one in the other thread) needs to be updated to work with the latest Source.Python version.
by Ayuto
Tue Sep 22, 2015 6:52 am
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14403

It defines the mode how you want to open the file. rb means read-binary and wb means write-binary.
More information: https://docs.python.org/3.4/library/functions.html#open
by Ayuto
Mon Sep 21, 2015 7:07 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14403

Did you look at the links I posted? There are conversion functions to convert SteamID2 to SteamID3 and vice-versa. Also, did you test the script I posted on the EventScripts forums? I'm pretty sure it will solve your issues.
by Ayuto
Sun Sep 20, 2015 6:56 pm
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 7217

Please be patient. We all have reallife and won't be able to work on SP 24/7. Some additional information would help: when does this error happen? How can we reproduce it? The exception you get is obviously the same like this one (you are just using a newer version): http://forums.sourcepython.com/s...
by Ayuto
Sun Sep 20, 2015 3:09 pm
Forum: General Discussion
Topic: Please help Scrap a list of numbers from the source code of a webpage ?
Replies: 3
Views: 3460

You just posted code, but didn't say what's wrong with it. What's your question?
by Ayuto
Sat Sep 19, 2015 9:34 pm
Forum: General Discussion
Topic: Please help Scrap a list of numbers from the source code of a webpage ?
Replies: 3
Views: 3460

Just wondering: what's the question? Or where do you have problems?
by Ayuto
Sat Sep 19, 2015 8:58 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14403

Hello and welcome! I can think of two options to solve the SteamID issues. ⋅ You can update all your databases by using the functions specified here: http://forums.eventscripts.com/viewtopic.php?f=90&t=47646 ⋅ You can try out this script . That guy over there reported that it's c...
by Ayuto
Fri Sep 18, 2015 5:02 am
Forum: General Discussion
Topic: SourcePython not loading after CSS Update
Replies: 7
Views: 5807

Did you update your server or was there another update?
by Ayuto
Thu Sep 17, 2015 6:27 pm
Forum: General Discussion
Topic: SourcePython not loading after CSS Update
Replies: 7
Views: 5807

Please try out the latest build. We have updated it for OrangeBox games.
by Ayuto
Thu Sep 17, 2015 9:45 am
Forum: General Discussion
Topic: SourcePython not loading after CSS Update
Replies: 7
Views: 5807

Yes, we are aware of this issue. I will take a look at it when I get home today.

Thanks for reporting!
by Ayuto
Mon Sep 14, 2015 10:28 pm
Forum: News & Announcements
Topic: Say and client command callback updates
Replies: 5
Views: 20196

Yes, there are plans. We already created a repository, but didn't get around working on it. But that feature is not required to create an admin plugin. Authorization can/will be done through menus and/or say/client commands. If you want to restrict the server commands your administrators can run, do...
by Ayuto
Mon Sep 14, 2015 7:38 pm
Forum: News & Announcements
Topic: Say and client command callback updates
Replies: 5
Views: 20196

No, currently it's not possible. Is there a high demand on that feature?
by Ayuto
Mon Sep 14, 2015 6:31 pm
Forum: News & Announcements
Topic: Say and client command callback updates
Replies: 5
Views: 20196

Say and client command callback updates

We just updated the say and client command callbacks. Four things have changed: ⋅ We changed the order of the arguments passed to the callbacks. ⋅ We are now passing an index instead of a PlayerInfo object to the callback. ⋅ We removed the first argument of the command ...
by Ayuto
Mon Sep 14, 2015 5:21 pm
Forum: Plugin Development Support
Topic: How to reset the player's sound to normal on player_blind?
Replies: 55
Views: 29028

But you have to return something in the pre-hook to block the function from firing. Something that is not None. :P As a reminder for everyone: If a function has a return type that is not "void", you need to return a value of that type to block the original function. If it's a void function, you can...

Go to advanced search