SA-MP Forums Archive
Problem with YSI - 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)
+--- Thread: Problem with YSI (/showthread.php?tid=461092)



Problem with YSI - bustern - 31.08.2013

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 ?


Re: Problem with YSI - DanishHaq - 31.08.2013

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


Re: Problem with YSI - bustern - 31.08.2013

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


Re: Problem with YSI - DanishHaq - 31.08.2013

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.


Re: Problem with YSI - bustern - 31.08.2013

Can someone help me ?


Re: Problem with YSI - PrinceKumar - 31.08.2013

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


Re: Problem with YSI - bustern - 31.08.2013

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


Re: Problem with YSI - bustern - 03.09.2013

BUMP


Re: Problem with YSI - gtakillerIV - 03.09.2013

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


Re: Problem with YSI - bustern - 03.09.2013

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