Raised This Month: $ Target: $400
 0% 

PawnStudio help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
enticore
New Member
Join Date: May 2009
Old 05-07-2009 , 07:29   PawnStudio help
Reply With Quote #1

First of all, my sincere apologies if this thread is in the wrong (sub)forum.

I'm having a slight issue with PawnStudio where it keeps telling me 'Cannot read from file "sourcemod"' upon compiling, and I'm quite clueless as how to solve this.
Also, I can't seem to get the auto-complete feature working.

Any help with any of these issues would be appreciated.

P.S.: I have tried the search function, but couldn't really find anything that helped me.

Last edited by enticore; 05-07-2009 at 07:38.
enticore is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 05-07-2009 , 08:20   Re: PawnStudio help
Reply With Quote #2

Did you download spcomp.exe and all the relative sourcemod files around it? include/

After you do that, you need to link PawnStudio with spcomp.exe. There's an option for that in the prefences. Since it seems like it tried to compile, you might have already done this. spcomp.exe comes with any windows sourcemod release, so just download anyone you like. Just copy over the entire scripting directory.

I think that message means that it can't find the sourcemod include file. I could be wrong through.
__________________

Last edited by pheadxdll; 05-07-2009 at 08:24.
pheadxdll is offline
enticore
New Member
Join Date: May 2009
Old 05-07-2009 , 08:30   Re: PawnStudio help
Reply With Quote #3

I had the compiler set up already, and I tried putting the sourcemod dll in the pawnstudio folder. Now I added the include folder and it compiles fine, guess I overlooked this folder when going through sourcemod files.Thanks for that.

So if anyone knows about the auto-complete, please let me know.

EDIT: seems to work for self defined functions, not for "framework" functions. e.g.: SetMenuTitle, AddMenuItem, etc

Last edited by enticore; 05-07-2009 at 08:37.
enticore is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 05-07-2009 , 08:38   Re: PawnStudio help
Reply With Quote #4

I didn't have to setup anything special to get auto complete working. It just worked. All of the function prototypes are in those include file, so make sure you have the proper files included. Just be sure you have a new Source Pawn file open and it should work. It's a nice feature of PS that I love.

You need another file included:

#include <menus>
or
#include <sdktools>
__________________

Last edited by pheadxdll; 05-07-2009 at 08:43.
pheadxdll is offline
enticore
New Member
Join Date: May 2009
Old 05-07-2009 , 09:09   Re: PawnStudio help
Reply With Quote #5

I had menus included but it didn't want to auto complete. However, I only copied the include directory from sourcemod. (missed the part where you mentioned copying the entire scripting directory.
So I went back and copied the entire scripting direcotry and it works like a charm.

Thanks for your help pheadxdll.
enticore is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode