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

AdminTag.sp error compile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
321rage
Junior Member
Join Date: Jun 2015
Old 06-03-2015 , 14:43   AdminTag.sp error compile
Reply With Quote #1

Hello,

I use AdminTag and I want edit it.... Why I can't compile? I have error...

PHP Code:
/home/groups/sourcemod/upload_tmp/phpufE3K3.sp(18) : error 029invalid expressionassumed zero
/home/groups/sourcemod/upload_tmp/phpufE3K3.sp(18) : error 029invalid expressionassumed zero
/home/groups/sourcemod/upload_tmp/phpufE3K3.sp(18) : warning 215expression has no effect
/home/groups/sourcemod/upload_tmp/phpufE3K3.sp(18) : error 001expected token";"but found ")"
/home/groups/sourcemod/upload_tmp/phpufE3K3.sp(18) : fatal error 189too many error messages on one line 
line

PHP Code:
public OnPluginStart()
{
    
HookEvent("player_team"EventEventHookMode:1);
    
HookEvent("player_spawn"EventEventHookMode:1);
    return 
0;

Thanks
321rage is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 06-03-2015 , 16:26   Re: AdminTag.sp error compile
Reply With Quote #2

Remove return 0 from OnPluginStart() and rename the callback to something other than "Event" (this is a type in SourcePawn).
__________________
11530 is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 06-03-2015 , 16:30   Re: AdminTag.sp error compile
Reply With Quote #3

I don't even know what you're compiling it with cuz I don't get those errors at all. Try https://www.sourcemod.net/compiler.php!
Miu is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-03-2015 , 17:05   Re: AdminTag.sp error compile
Reply With Quote #4

Do you have the original source instead of a Lysis/SMXViewer decompile?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Darkness_
Veteran Member
Join Date: Nov 2014
Old 06-04-2015 , 02:19   Re: AdminTag.sp error compile
Reply With Quote #5

Quote:
Originally Posted by Powerlord View Post
Do you have the original source instead of a Lysis/SMXViewer decompile?
I was wondering the same. Turns out that is the source version from https://forums.alliedmods.net/showthread.php?t=211992
Darkness_ is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-04-2015 , 12:02   Re: AdminTag.sp error compile
Reply With Quote #6

Quote:
Originally Posted by Darkness_ View Post
I was wondering the same. Turns out that is the source version from https://forums.alliedmods.net/showthread.php?t=211992
I facepalmed as soon as I saw there were different versions for different languages.

Then I facepalmed again when I noticed the actual source of that plugin includes the code quoted above.

Edit:

Incidentally, this is being billed as a replacement for it.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-04-2015 at 12:06.
Powerlord 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 20:08.


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