Problem with YSI
#1

When i included YSI to my GameMode i got:
pawn Код:
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_debug.inc(277) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_debug.inc(339) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_debug.inc(344) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_amx.inc(454) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_amx.inc(904) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_amx.inc(926) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_utils.inc(246) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_utils.inc(369) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_utils.inc(396) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_utils.inc(475) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_malloc.inc(488) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_malloc.inc(613) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Niko\Desktop\Тестове\pawno\include\YSI\y_ini.inc(1074) : warning 219: local variable "str" shadows a variable at a preceding level
How to remove this warnings ?
Reply
#2

Somewhere you have:

pawn Код:
#new str **a number will be here without the stars**
Just remove that.

If that doesn't work, have you included the same YSI file twice?

Edit: Meh, ****** is faster.. by a minute.. .
Reply
#3

I dont have #new strt [NUMBER]
I included YSI one time...
Reply
#4

Quote:
Originally Posted by bustern
Посмотреть сообщение
Bugged script, when i compile it i got errors, next time check if the script is working, then make tutorials
Did you edit any of the script before coming to compile it? I just compiled it, and it worked perfectly...

Plus, we don't want to look for strt, we want to look for str without the t.
Reply
#5

Can someone help me ?
Reply
#6

Find for 'new str' in ur script. N if you find it before main()/ongamemodeinit/onfilterscriptinit then delete them .
Reply
#7

Quote:
Originally Posted by PrinceKumar
Посмотреть сообщение
Find for 'new str' in ur script. N if you find it before main()/ongamemodeinit/onfilterscriptinit then delete them .
i searched, but i didnt find...
Reply
#8

BUMP
Reply
#9

How come you didn't find any 'str' in your script? The compiler clearly says that there is.
Reply
#10

I found !!!
new levels,Nam[MAX_PLAYER_NAME],pname[MAX_PLAYER_NAME],str[128],ID;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)