AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cant find whats wrong in script to compile! (https://forums.alliedmods.net/showthread.php?t=324111)

nydwyd 05-06-2020 12:42

Cant find whats wrong in script to compile!
 
Hello, i try long time to figure out whats from but cant find it.. can you help me? i wanna compile but get this error:

[PHP]//// pimpspug.sma
//
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(539) : error 088: number of arguments does not match definition
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(1171) : warning 225: unreachable code
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(2179) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(4839) : error 047: array sizes do not match, or destination array is too small
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(4857) : error 047: array sizes do not match, or destination array is too small
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(4970) : error 047: array sizes do not match, or destination array is too small
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(5075) : warning 225: unreachable code
//
// 4 Errors.
// Could not locate output file compiled\pimpspug.amx (compile failed).
//
// Compilation Time: 1.64 sec
// ----------------------------------------

Press enter to exit ...

CrazY. 05-06-2020 13:12

Re: Cant find whats wrong in script to compile!
 
Can you attach the sma of that plugin?

OciXCrom 05-06-2020 13:56

Re: Cant find whats wrong in script to compile!
 
Code:
new g_iPlayers[MAX_PLAYERS - 1];

=>

Code:
new g_iPlayers[MAX_PLAYERS];

----

And remove the last argument (false) in "set_dhudmessage".

nydwyd 05-06-2020 14:00

Re: Cant find whats wrong in script to compile!
 
Quote:

Originally Posted by OciXCrom (Post 2698540)
Code:
new g_iPlayers[MAX_PLAYERS - 1];

=>

Code:
new g_iPlayers[MAX_PLAYERS];

----

And remove the last argument (false) in "set_dhudmessage".


PHP Code:

//// pimpspug.sma
//
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(539) : error 029: invalid expression, assumed zero
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(539) : error 088: number of arguments does not match definition
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(1171) : warning 225: unreachable code
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(2179) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(5075) : warning 225: unreachable code
//
// 2 Errors.
// Could not locate output file compiled\pimpspug.amx (compile failed).
//
// Compilation Time: 1.58 sec
// ----------------------------------------

Press enter to exit ... 

Now getting this

SOLVED: I left "," after removing "false". Im getting this warning right now, but i think its not important,right? p.s. removed script for safety.

PHP Code:

//// pimpspug.sma
//
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(1171) : warning 225: unreachable code
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(2179) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
// C:\Users\Vilhelmas\Desktop\COMPILER 2020\pimpspug.sma(5075) : warning 225: unreachable code
// Header size:           6320 bytes
// Code size:           173172 bytes
// Data size:           278344 bytes
// Stack/heap size:      81920 bytes
// Total requirements:  539756 bytes
//
// 3 Warnings.
// Done. 


OciXCrom 05-06-2020 15:56

Re: Cant find whats wrong in script to compile!
 
Why did you remove the plugin? Don't blank out your posts. Someone else might have the same issue.

DJEarthQuake 05-06-2020 18:46

Re: Cant find whats wrong in script to compile!
 
1 Attachment(s)
Quote:

Originally Posted by nydwyd (Post 2698543)
p.s. removed script for safety.


nydwyd 05-06-2020 21:33

Re: Cant find whats wrong in script to compile!
 
Is that against the rules? The problem and the solution easy to spot.

DJEarthQuake 05-07-2020 05:13

Re: Cant find whats wrong in script to compile!
 
https://forums.alliedmods.net/misc.php?do=showrules
Do not blank out posts. Additionally, if you solve your problem post the solution for others to find.
Do not cross-post threads to multiple forums (or posts to multiple threads).

HamletEagle 05-07-2020 11:56

Re: Cant find whats wrong in script to compile!
 
Quote:

Originally Posted by nydwyd (Post 2698579)
Is that against the rules? The problem and the solution easy to spot.

If it's that easy to spot why did you ask for help in the first place?
And yes, it is against the rules to blank your post and remove the source files after getting help. Think for 5 seconds what would happen to this forum is everyone removed their posts.

nydwyd 05-10-2020 19:27

Re: Cant find whats wrong in script to compile!
 
Quote:

Originally Posted by HamletEagle (Post 2698699)
If it's that easy to spot why did you ask for help in the first place?
And yes, it is against the rules to blank your post and remove the source files after getting help. Think for 5 seconds what would happen to this forum is everyone removed their posts.

I will reupload script in 24h.


All times are GMT -4. The time now is 17:00.

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