AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cant compile my plugin [Help] (https://forums.alliedmods.net/showthread.php?t=209855)

bloody806 03-02-2013 20:44

Cant compile my plugin [Help]
 
Hi i have plugin but show me too many erros :cry:
Does anyone have any ideas how to fix this? Please

I attach SMA file

Here are errors:

Code:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Number of arguments does not match definition on line 156
Error: Invalid function or declaration on line 169
Error: Invalid function or declaration on line 172
Error: Invalid function or declaration on line 174
Error: Invalid function or declaration on line 178
Error: Unmatched closing brace on line 184
Error: Argument type mismatch (argument 1) on line 597
Error: Argument type mismatch (argument 1) on line 597
Error: Argument type mismatch (argument 2) on line 598
Error: Argument type mismatch (argument 1) on line 600
Error: Argument type mismatch (argument 1) on line 600
Error: Argument type mismatch (argument 2) on line 601
Error: Invalid expression, assumed zero on line 606
Error: Undefined symbol "hlavnemenu_handle" on line 606
Warning: Expression has no effect on line 606
Error: Expected token: ";", but found ")" on line 606
Error: Too many error messages on one line on line 606

Compilation aborted.
16 Errors.

Edit: REMOVE SMA FILE I was fixed my plugin

vitorrossi 03-02-2013 22:06

Re: Cant compile my plugin [Help]
 
post the errors

bloody806 03-02-2013 22:11

Re: Cant compile my plugin [Help]
 
I edited my first post.

YamiKaitou 03-02-2013 22:15

Re: Cant compile my plugin [Help]
 
156: hlavnemenu with 1 paramater does not exist
169-184: if statement is not within a function
597, 598, 600, 601: item is not an array of characters
606: You are defining a function within a function


Also, attach the SMA file and remove the code block from your post. Indent your code as well

bloody806 03-02-2013 22:40

Re: Cant compile my plugin [Help]
 
Okay i attach SMA file

YamiKaitou 03-02-2013 22:46

Re: Cant compile my plugin [Help]
 
Quote:

Originally Posted by YamiKaitou (Post 1905473)
156: hlavnemenu with 1 paramater does not exist
169-184: if statement is not within a function
597, 598, 600, 601: item is not an array of characters
606: You are defining a function within a function


bloody806 03-02-2013 22:53

Re: Cant compile my plugin [Help]
 
Wow i fixed :) Thank you for the help


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

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