[Solved] warnings
#1

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!


Reply
#2

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
Reply
#3

Yeah, i have 250+ but, i wanna fix them.
Reply
#4

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
Reply
#5

Well, maybe someone else can help us two now?
Reply
#6

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

Okay, thank you, i know now hos to fix them all.

Thx.
Reply
#8

nvm
Reply
#9

Its fixed, thank you. Check first post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)