Script Errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script Errors (
/showthread.php?tid=92483)
Script Errors -
Eazy_Efolife - 20.08.2009
Im Getting Errors in my RP script, I dont want to show the script in public because Ive been working hard on it. Can I show it to someone in Private Messages?
Errors:
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(7523) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(7528) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(7582) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(7587) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(7587) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(7588) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(10235) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(10363) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(10676) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(14352) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(14353) : error 021: symbol already defined: "strtok"
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(14363) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(16410) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\Eazy RP\gamemodes\erp.pwn(16410) : error 021: symbol already defined: "HexToInt"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
10 Errors.
Re: Script Errors -
laser50 - 20.08.2009
maybe first fix the 4 Loose indentation shit
Re: Script Errors -
Eazy_Efolife - 20.08.2009
just fixed it just get errors no warnings now
Re: Script Errors -
Cezar - 20.08.2009
Look @ your latest changes see if your missing a bracket ? Or similar like a [ or (
Re: Script Errors -
Redgie - 20.08.2009
(752

: error 047: array sizes do not match, or destination array is too small
Check line 7528, you are trying to place a variable / string into a variable / string that is too small. E.G. Putting a 16 letter name into a 10 letter string.
(14352) : error 025: function heading differs from prototype
Your function has been declared differently to how you have written it on public YourFunction(Variables)
(16410) : error 021: symbol already defined: "HexToInt"
You have already done new HexToInt, don't "new" it again.
You have several instances of each of these types of errors, fix each of each and then repost your errors.
Re: Script Errors -
Eazy_Efolife - 20.08.2009
didnt help much but fixed it
I was lazy and didnt pay attention
Just change
[128];
to
[256];
Re: Script Errors -
Redgie - 20.08.2009
"didnt help much but fixed it"
Is that in response to our posts?
Re: Script Errors -
Eazy_Efolife - 20.08.2009
Quote:
Originally Posted by Redgie
"didnt help much but fixed it"
Is that in response to our posts?
|
yup, I wasnt paying attention on what I was scripting!
but thanks for trying to help me
Re: Script Errors -
Redgie - 20.08.2009
Yeah, the thanks bit is what we want to hear. Even if people don't help you, they still tried, so saying "didnt help much but fixed it" isn't a very nice thing to say xD Anyway, glad you got it fixed, well done for doing it yourself, it feels alot better to fix it yourself