Help needed urgently. - 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: Help needed urgently. (
/showthread.php?tid=204216)
Help needed urgently. -
Yamoo - 29.12.2010
Sorry guys but this is abit of an emergency lol.. I ain't a expert and ectera but I''m in need of help as you can see.
Account\Desktop\West Coast Gaming\pawno\include\md5.inc(397) : warning 219: local variable "b" shadows a variable at a preceding level
Код:
a = buf[0],
(this one ->) b = buf[1],
c = buf[2],
d = buf[3];
Re: Help needed urgently. -
Marricio - 29.12.2010
''b'' is already defined
Re: Help needed urgently. -
Yamoo - 29.12.2010
Hmm, I don't see it defined already.
Re: Help needed urgently. -
Retardedwolf - 29.12.2010
You may be using a include that has already defined 'b'.
Re: Help needed urgently. -
Yamoo - 29.12.2010
The point is I don't.. I believe so anyway.
Re: Help needed urgently. -
Joe Staff - 29.12.2010
Then change it q or something. I've ran into dozens of these anomalies, best way to deal with it is just rework it, and get over it. Don't get me wrong though, it's always good to go dig into it and see what's up, but it's just a lot easier if your just get over it.
Re: Help needed urgently. -
Yamoo - 29.12.2010
Eh Silent thanks.. Everyday is a school day lol.
Re: Help needed urgently. -
Malik_Henderson - 29.12.2010
Quote:
C:\Users\Online Account\Desktop\West Coast Gaming\pawno\include\md5.inc(397) : warning 219: local variable "b" shadows a variable at a preceding level
C:\Users\Online Account\Desktop\West Coast Gaming\gamemodes\wcg.pwn(40692) : warning 217: loose indentation
C:\Users\Online Account\Desktop\West Coast Gaming\gamemodes\wcg.pwn(41777) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 9432 bytes
Code size: 1664000 bytes
Data size: 7744944 bytes
Stack/heap size: 16384 bytes; estimated max. usage=7299 cells (29196 bytes)
Total requirements: 9434760 bytes
3 Warnings.
|
xD wow thats gay!!
Re: Help needed urgently. -
Universal - 29.12.2010
how to turn on these on compile:
Код:
Header size: 9432 bytes
Code size: 1664000 bytes
Data size: 7744944 bytes
Stack/heap size: 16384 bytes; estimated max. usage=7299 cells (29196 bytes)
Total requirements: 9434760 bytes
huh?
Re: Help needed urgently. - [03]Garsino - 29.12.2010
Quote:
Originally Posted by Universal
how to turn on these on compile:
Код:
Header size: 9432 bytes
Code size: 1664000 bytes
Data size: 7744944 bytes
Stack/heap size: 16384 bytes; estimated max. usage=7299 cells (29196 bytes)
Total requirements: 9434760 bytes
huh?
|
Reduce the memory usage in your script.
Don't use strings like
pawn Код:
new string[256];
GetPlayerIp(playerid, string, sizeof(string));
because the IP can be a maximum of 15 characters + null at the end = 16 in total.
So the right code should be:
pawn Код:
new string[16];
GetPlayerIp(playerid, string, sizeof(string));
This is just an example though.