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

Cant find whats wrong in script to compile!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nydwyd
Junior Member
Join Date: May 2020
Old 05-06-2020 , 12:42   Cant find whats wrong in script to compile!
Reply With Quote #1

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 ...

Last edited by nydwyd; 05-06-2020 at 15:54.
nydwyd is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-06-2020 , 13:12   Re: Cant find whats wrong in script to compile!
Reply With Quote #2

Can you attach the sma of that plugin?
__________________








CrazY. is offline
Old 05-06-2020, 13:19
nydwyd
This message has been deleted by nydwyd.
Old 05-06-2020, 13:20
nydwyd
This message has been deleted by nydwyd.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-06-2020 , 13:56   Re: Cant find whats wrong in script to compile!
Reply With Quote #3

Code:
new g_iPlayers[MAX_PLAYERS - 1];

=>

Code:
new g_iPlayers[MAX_PLAYERS];

----

And remove the last argument (false) in "set_dhudmessage".
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
nydwyd
Junior Member
Join Date: May 2020
Old 05-06-2020 , 14:00   Re: Cant find whats wrong in script to compile!
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
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. 

Last edited by nydwyd; 05-06-2020 at 15:55.
nydwyd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-06-2020 , 15:56   Re: Cant find whats wrong in script to compile!
Reply With Quote #5

Why did you remove the plugin? Don't blank out your posts. Someone else might have the same issue.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-06-2020 , 18:46   Re: Cant find whats wrong in script to compile!
Reply With Quote #6

Quote:
Originally Posted by nydwyd View Post
p.s. removed script for safety.
Attached Files
File Type: sma Get Plugin or Get Source (Compiles on the new AMXX.sma - 98 views - 132.2 KB)
__________________
DJEarthQuake is offline
nydwyd
Junior Member
Join Date: May 2020
Old 05-06-2020 , 21:33   Re: Cant find whats wrong in script to compile!
Reply With Quote #7

Is that against the rules? The problem and the solution easy to spot.

Last edited by nydwyd; 05-06-2020 at 21:47.
nydwyd is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-07-2020 , 05:13   Re: Cant find whats wrong in script to compile!
Reply With Quote #8

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).
__________________
DJEarthQuake is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-07-2020 , 11:56   Re: Cant find whats wrong in script to compile!
Reply With Quote #9

Quote:
Originally Posted by nydwyd View Post
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.
__________________

Last edited by HamletEagle; 05-07-2020 at 11:56.
HamletEagle is offline
nydwyd
Junior Member
Join Date: May 2020
Old 05-10-2020 , 19:27   Re: Cant find whats wrong in script to compile!
Reply With Quote #10

Quote:
Originally Posted by HamletEagle View Post
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.
nydwyd 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 15:22.


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