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

Scripting Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mortdredd
Senior Member
Join Date: Dec 2009
Old 01-29-2010 , 02:18   Scripting Help
Reply With Quote #1

I keep getting

error 047: array sizes do not match, or destination array is too small

when i try to complie a script. any idea what it means? will post the script if it helps
Mortdredd is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 01-29-2010 , 02:23   Re: Scripting Help
Reply With Quote #2

Quote:
Originally Posted by Mortdredd View Post
will post the script if it helps
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 01-29-2010 , 02:37   Re: Scripting Help
Reply With Quote #3

It is impossible to tell what is wrong, other than the obvious, without the script.
__________________
toazron1 is offline
Send a message via AIM to toazron1
Mortdredd
Senior Member
Join Date: Dec 2009
Old 01-29-2010 , 05:25   Re: Scripting Help
Reply With Quote #4

Sorry, here is the code. its a reworking of an old unlimited ammo code found here - http://forums.alliedmods.net/showthread.php?t=106426

Last edited by Mortdredd; 01-30-2010 at 10:35.
Mortdredd is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 01-29-2010 , 20:22   Re: Scripting Help
Reply With Quote #5

Line number would be helpful too
__________________
Greyscale is offline
Mortdredd
Senior Member
Join Date: Dec 2009
Old 01-30-2010 , 04:00   Re: Scripting Help
Reply With Quote #6

Quote:
Originally Posted by Greyscale View Post
Line number would be helpful too
i get
/groups/sourcemod/upload_tmp/textEWfapt.sp(263) : error 047: array sizes do not match, or destination array is too small


1 Error.

when trying to use the webby to compilr so i guess line 263?
Mortdredd is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 01-30-2010 , 04:31   Re: Scripting Help
Reply With Quote #7

Function:
Code:
SendAmmoToClient(clnTarget, intWeaponIndex, aintClipAndReserveAmmo[1] )
Call:
Code:
new aintClipAndReserveAmmo[2];
SendAmmoToClient( clnTarget, intWeaponIndex, aintClipAndReserveAmmo );
Passing a 2-indexed array into a param that defines 1.
__________________
Greyscale is offline
Mortdredd
Senior Member
Join Date: Dec 2009
Old 01-30-2010 , 07:01   Re: Scripting Help
Reply With Quote #8

awsome, compiled fine, many thanks grayscale
Mortdredd is offline
Mortdredd
Senior Member
Join Date: Dec 2009
Old 01-30-2010 , 10:32   Re: Scripting Help
Reply With Quote #9

well it compiles, but does not do anything no admin with o flag gets the ammo regen

Last edited by Mortdredd; 02-03-2010 at 16:59.
Mortdredd is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 01-30-2010 , 13:55   Re: Scripting Help
Reply With Quote #10

Quote:
Originally Posted by Mortdredd View Post
well it compiles, but does not do anything no admin with o flag gets the ammo regen
You're using ADMFLAG_CUSTOM4, which is r, not o. For o use ADMFLAG_CUSTOM1.
noodleboy347 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 19:24.


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