SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/09/2018, 07:11 PM   #1
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 665
Reputation: 37
Default YSI Warnings

Hello, I got a bunch of YSI and warnings how do I fix this ? I recently changed the YSI version to the newest

Code:
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\foreach.inc(33) : warning 216: nested comment
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\foreach.inc(36) : warning 216: nested comment
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(649) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(650) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(651) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(652) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(653) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(654) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(655) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(656) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(657) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(658) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(659) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(660) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(661) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(662) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(663) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(664) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(665) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(666) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(667) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(668) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(669) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(670) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(671) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(672) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(673) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(674) : error 075: input line too long (after substitutions)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
SacrificeGaming is offline   Reply With Quote
Old 12/09/2018, 07:21 PM   #2
Calisthenics
Huge Clucker
 
Join Date: May 2018
Posts: 422
Reputation: 69
Default Re: YSI Warnings

Do not use foreach (standalone) include. Since you are using YSI, include y_iterate instead.

Most tests (if not all) are compiled with community compiler so replace the default one: https://github.com/pawn-lang/compiler/releases
Calisthenics is offline   Reply With Quote
Old 12/09/2018, 07:56 PM   #3
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 665
Reputation: 37
Default Re: YSI Warnings

Quote:
Originally Posted by Calisthenics View Post
Do not use foreach (standalone) include. Since you are using YSI, include y_iterate instead.

Most tests (if not all) are compiled with community compiler so replace the default one: https://github.com/pawn-lang/compiler/releases
Still have the same warnings once I disable
Code:
//#include <foreach>
Code:
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(649) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(650) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(651) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(652) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(653) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(654) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(655) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(656) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(657) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(658) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(659) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(660) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(661) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(662) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(663) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(664) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(665) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(666) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(667) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(668) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(669) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(670) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(671) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(672) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(673) : error 075: input line too long (after substitutions)
C:\Users\marlb\Desktop\Hawkins RP\pawno\include\YSI\y_scripting.inc(674) : error 075: input line too long (after substitutions)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
the foreach warnings are gone if I disable the #include But the YSI isn't



PHP Code:
//#include <foreach> 
SacrificeGaming is offline   Reply With Quote
Old 12/09/2018, 08:01 PM   #4
willbedie
Gangsta
 
willbedie's Avatar
 
Join Date: Feb 2016
Location: Albania
Posts: 545
Reputation: 59
Default Re: YSI Warnings

Quote:
Originally Posted by Calisthenics View Post
Do not use foreach (standalone) include. Since you are using YSI, include y_iterate instead.

Most tests (if not all) are compiled with community compiler so replace the default one: https://github.com/pawn-lang/compiler/releases
What you said has nothing to do with the warnings, did you even read it? It has something to do with y_scripting will have a look at this again once i go home
__________________


willbedie is offline   Reply With Quote
Old 12/09/2018, 08:05 PM   #5
Calisthenics
Huge Clucker
 
Join Date: May 2018
Posts: 422
Reputation: 69
Default Re: YSI Warnings

Quote:
Originally Posted by willbedie View Post
What you said has nothing to do with the warnings, did you even read it? It has something to do with y_scripting will have a look at this again once i go home
Did you read the error? Input line too long. The new compiler increases the characters limit per line so it will fix the errors.
Calisthenics is offline   Reply With Quote
Old 12/09/2018, 08:06 PM   #6
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 665
Reputation: 37
Default Re: YSI Warnings

Quote:
Originally Posted by Calisthenics View Post
Did you read the error? Input line too long. The new compiler increases the characters limit per line so it will fix the errors.
I have always been using notepad and pawno why should I use another compiler ? :O
SacrificeGaming is offline   Reply With Quote
Old 12/09/2018, 08:06 PM   #7
Burridge
High-roller
 
Burridge's Avatar
 
Join Date: Nov 2008
Location: England
Posts: 1,872
Reputation: 42
Default Re: YSI Warnings

Quote:
Originally Posted by willbedie View Post
What you said has nothing to do with the warnings, did you even read it? It has something to do with y_scripting will have a look at this again once i go home
You should read this: http://forum.sa-mp.com/showthread.php?t=473595

Calisthenics's suggestion to use Zeex's compiler should fix the issue.

Quote:
Originally Posted by SacrificeGaming View Post
I have always been using notepad and pawno why should I use another compiler ? :O
Zeex's just replaces the default pawncc AFAIK.
Burridge is offline   Reply With Quote
Old 12/09/2018, 08:07 PM   #8
Calisthenics
Huge Clucker
 
Join Date: May 2018
Posts: 422
Reputation: 69
Default Re: YSI Warnings

Quote:
Originally Posted by SacrificeGaming View Post
I have always been using notepad and pawno why should I use another compiler ? :O
We are talking about pawncc, the compiler. Not an editor.
Calisthenics is offline   Reply With Quote
Old 12/09/2018, 08:21 PM   #9
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 665
Reputation: 37
Default Re: YSI Warnings

NOT FIXED SEE SECOND PAGE

Last edited by SacrificeGaming; 12/09/2018 at 10:42 PM.
SacrificeGaming is offline   Reply With Quote
Old 12/09/2018, 09:42 PM   #10
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,317
Reputation: 3191
Default Re: YSI Warnings

Care to share how for future reference? y_scripting is extremely old, so my suggestion would be updating.
Y_Less is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me with this warnings please. REP++ alanhutch Scripting Help 8 09/06/2014 11:17 PM
[Ajuda] 3 Warnings!!!! victor304 PortuguÍs/Portuguese 1 14/10/2012 04:47 PM
warnings cause lag? SampLoverNo123 Server Support 0 19/02/2012 05:03 PM
[AJUDA]Warnings Mt Warnings Fuuu 4LiSs0N PortuguÍs/Portuguese 3 11/01/2012 11:24 AM
2 Warnings. Janek17 Help Archive 4 21/01/2011 12:47 AM


All times are GMT. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.