Raised This Month: $12 Target: $400
 3% 

Need help with compileing my sp plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 06-13-2020 , 07:06   Re: Need help with compileing my sp plugin.
Reply With Quote #11

Dont use switch in 2 options.
Attached Files
File Type: sp Get Plugin or Get Source (vipjack.sp - 126 views - 777 Bytes)

Last edited by Kellan123; 06-13-2020 at 07:06.
Kellan123 is offline
Jackkkk
Junior Member
Join Date: Jun 2020
Location: Sweden
Old 06-13-2020 , 13:49   Re: Need help with compileing my sp plugin.
Reply With Quote #12

can you point it out on the plugin for me.

Discord: Jackk#0180
Jackkkk is offline
Chrissy
Member
Join Date: May 2013
Old 06-13-2020 , 16:38   Re: Need help with compileing my sp plugin.
Reply With Quote #13

Lines: 1, 11, 16, and 25

Please look at these lines and try and fix them yourself. This is the best way to learn. Check spelling and incorrect operators.
Chrissy is offline
Jackkkk
Junior Member
Join Date: Jun 2020
Location: Sweden
Old 06-13-2020 , 18:11   Re: Need help with compileing my sp plugin.
Reply With Quote #14

okay
Jackkkk is offline
Jackkkk
Junior Member
Join Date: Jun 2020
Location: Sweden
Old 06-13-2020 , 18:12   Re: Need help with compileing my sp plugin.
Reply With Quote #15

But the question is still here.

Why do i get these errors when im compiling others sp's that should work
Jackkkk is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 06-14-2020 , 06:26   Re: Need help with compileing my sp plugin.
Reply With Quote #16

Quote:
Originally Posted by Jackkkk View Post
im compiling through spedit and my program version is up to date (version 1.2.0.3)

And this is my plugin (keep in mind that im new to all of this):

If anyone got some time to help me and is willing to, here is my discord for faster response (keep in mind that im new to scourepawn): Jackk#0180
I'm talking about the compiler version, not the version of the spedit editor.
Which plugin are you having trouble compiling other than your own one? As Chrissy pointed out, you have lots of typos like "," vs ".", "Plugin_Handeld" vs. "Plugin_Handled", "#include <scouremod>" vs. "#include <sourcemod>", "new menu(" vs. "new Menu(".

Programming languages are very strict about letter casing, spelling and punctation, so always check the line an error is reported on and the lines above it for typos first.
__________________
Peace-Maker is offline
Jackkkk
Junior Member
Join Date: Jun 2020
Location: Sweden
Old 06-14-2020 , 09:32   Re: Need help with compileing my sp plugin.
Reply With Quote #17

im compiling with speditor.

i've tried multiple scripts but none of the worked. Some of them are myjb, smartjaildoors and a noblock plugin.
Jackkkk is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 06-14-2020 , 10:55   Re: Need help with compileing my sp plugin.
Reply With Quote #18

"it didn't work" isn't a great description of an error. If you really want to get help, consider providing as much information to understand and replicate your issue as possible including the exact steps you followed that lead you to the error as well as pasting the output of the error messages. This will get you the answer you want right away and saves everyone time.

SPEdit is only an editor that calls the sourcepawn compiler for you. So you still use spcomp.exe under the hood. I'm not sure about SPEdit, but there must be some configuration option to select the compiler it uses. There might be the raw output of it too somewhere where you see the compiler version like

Code:
SourcePawn Compiler 1.11.0.6567
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

Code size:             4372 bytes
Data size:             2380 bytes
Stack/heap size:      16384 bytes
Total requirements:   23136 bytes
[Finished in 0.2s]
__________________
Peace-Maker is offline
Jackkkk
Junior Member
Join Date: Jun 2020
Location: Sweden
Old 06-14-2020 , 11:20   Re: Need help with compileing my sp plugin.
Reply With Quote #19

okay i will describe my problem as good as possible.

I made my plugin with the hellp of acouple youtube videos and then it was time for compiling and when i compiled my plugin with spedit i got these errors:

error 107: cannot call methods on a function
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 190: too many error messages on one line

i attached my plugin at the bottom for you to look.

Thats all i did.
Attached Files
File Type: sp Get Plugin or Get Source (VIP JACK.sp - 38 views - 800 Bytes)

Last edited by Jackkkk; 06-14-2020 at 11:22.
Jackkkk is offline
Weetabix
Member
Join Date: Feb 2017
Location: United Kingdom
Old 06-14-2020 , 11:30   Re: Need help with compileing my sp plugin.
Reply With Quote #20

Line 7: Change . to , after Command_Vip
Line 11: Change menu to Menu
Line 16: Change Plugin_Handeld to Plugin_Handled
Line 25: Change , to . after menu
Weetabix is offline
Reply


Thread Tools
Display Modes

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 18:35.


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