[Solved] warnings - 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: [Solved] warnings (
/showthread.php?tid=114429)
[Solved] warnings -
Jeffry - 19.12.2009
Good morning guys,
i just had two short questions, but now they are answered:
For you to know:
pawn Код:
C:\...(1942) : warning 225: unreachable code
I had a return 1; too much!
pawn Код:
C:\...(6518) : warning 219: local variable "string" shadows a variable at a preceding level
Just make string[128] to blabla[128]
Cause string[128] was used anywhere before in the script!
FIXED!
Re: Question about warnings -
SlashPT - 19.12.2009
the unreachble code is one problem you have on script the string just rename the string to for example stringz
any way i have 268 warning but idk how to fix them lol
Re: Question about warnings -
Jeffry - 19.12.2009
Yeah, i have 250+ but, i wanna fix them.
Re: Question about warnings -
SlashPT - 19.12.2009
haha so we are two but i really cant fix them it haves alot of problems bcs i started scripting and idk really do nothing now im doing other GM but for one cousin mine and dont have any warning but mine now.... its a problem
Re: Question about warnings -
Jeffry - 19.12.2009
Well, maybe someone else can help
us two now?
Re: Question about warnings -
Think - 19.12.2009
Quote:
Originally Posted by Jeffry
Good morning guys,
i just have two short questions:
pawn Код:
C:\...(1942) : warning 225: unreachable code
pawn Код:
C:\...(6518) : warning 219: local variable "string" shadows a variable at a preceding level
How can i fix them?
|
@ warning 225: show the linez
@warning 219: just rename the 'string' on line 6518 to string2 and in the function where it is being defined, replace string with string2.
Re: Question about warnings -
Jeffry - 19.12.2009
Okay, thank you, i know now hos to fix them all.
Thx.
Re: Question about warnings -
CJ101 - 19.12.2009
nvm
Re: [Solved] warnings -
Jeffry - 19.12.2009
Its fixed, thank you. Check first post.