SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/06/2012, 09:24 AM   #1
Dare Devil.....
Huge Clucker
 
Dare Devil.....'s Avatar
 
Join Date: Jan 2012
Location: Pakistan
Posts: 253
Reputation: 10
Default 5 errors

5 errors how do I fix em?
Code:
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(469) : error 017: undefined symbol "IRC_SetIntData"
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(470) : error 017: undefined symbol "IRC_SetIntData"
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7561) : error 025: function heading differs from prototype
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7581) : error 025: function heading differs from prototype
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7588) : warning 235: public function lacks forward declaration (symbol "IRC_OnKickedFromChannel")
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7593) : warning 235: public function lacks forward declaration (symbol "IRC_OnConnectAttemptFail")
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7612) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserRequestCTCP")
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7614) : error 017: undefined symbol "IRC_ReplyCTCP"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Dare Devil..... is offline   Reply With Quote
Old 20/06/2012, 09:29 AM   #2
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,421
Reputation: 273
Default Re: 5 errors

Have you included the IRC include?

From the looks of those errors, your using functions/callbacks that do not exist, or haven't been forwarded.
iggy1 is offline   Reply With Quote
Old 20/06/2012, 09:46 AM   #3
Dare Devil.....
Huge Clucker
 
Dare Devil.....'s Avatar
 
Join Date: Jan 2012
Location: Pakistan
Posts: 253
Reputation: 10
Default Re: 5 errors

I placed IRC.inc in my includes folder what should I do next this is Los Santos Prison Roleplay Game Mode
Dare Devil..... is offline   Reply With Quote
Old 20/06/2012, 09:53 AM   #4
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,421
Reputation: 273
Default Re: 5 errors

Have you included it in your mode/fs?

pawn Code:
#include <IRC>
iggy1 is offline   Reply With Quote
Old 20/06/2012, 10:38 AM   #5
Dare Devil.....
Huge Clucker
 
Dare Devil.....'s Avatar
 
Join Date: Jan 2012
Location: Pakistan
Posts: 253
Reputation: 10
Default Re: 5 errors

Yes I have done it its the error in Los Santos
Prison Roleplay
Dare Devil..... is offline   Reply With Quote
Old 20/06/2012, 11:19 AM   #6
Skaizo
Gangsta
 
Skaizo's Avatar
 
Join Date: Sep 2010
Location: Romanian
Posts: 842
Reputation: 15
Default Re: 5 errors

pawn Code:
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7588) : warning 235: public function lacks forward declaration (symbol "IRC_OnKickedFromChannel")
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7593) : warning 235: public function lacks forward declaration (symbol "IRC_OnConnectAttemptFail")
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7612) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserRequestCTCP")
That is just a warning,the creators decided to remove that function, simply remove and you, delete IRC_OnKickedFromChannel
IRC_OnConnectAttemptFail
IRC_OnUserRequestCTCP

and two eror,try update irc plugin and include
__________________
My works(Romanian)
Thanks To Jansish For Signature
[Tutorial]rezolvarea eroare pawno failed to set data for si File or function is not found
I am Russian?
No
You are Russian army fuck?
Yes but no Fuck
Lol )
Skaizo is offline   Reply With Quote
Old 20/06/2012, 01:06 PM   #7
Dare Devil.....
Huge Clucker
 
Dare Devil.....'s Avatar
 
Join Date: Jan 2012
Location: Pakistan
Posts: 253
Reputation: 10
Default Re: 5 errors

Quote:
Originally Posted by Skaizo View Post
pawn Code:
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7588) : warning 235: public function lacks forward declaration (symbol "IRC_OnKickedFromChannel")
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7593) : warning 235: public function lacks forward declaration (symbol "IRC_OnConnectAttemptFail")
C:\Users\Osman Ali\Desktop\gamemodes\LSRRP.pwn(7612) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserRequestCTCP")
That is just a warning,the creators decided to remove that function, simply remove and you, delete IRC_OnKickedFromChannel
IRC_OnConnectAttemptFail
IRC_OnUserRequestCTCP

and two eror,try update irc plugin and include
Warnings are fixed errors are still there.
Dare Devil..... is offline   Reply With Quote
Old 20/06/2012, 01:13 PM   #8
Dare Devil.....
Huge Clucker
 
Dare Devil.....'s Avatar
 
Join Date: Jan 2012
Location: Pakistan
Posts: 253
Reputation: 10
Default Re: 5 errors

Sorry for double post not it gives four errors

Code:
C:\Users\Osman Ali\Desktop\LSRRP.pwn(469) : error 017: undefined symbol "IRC_SetIntData"
C:\Users\Osman Ali\Desktop\LSRRP.pwn(470) : error 017: undefined symbol "IRC_SetIntData"
C:\Users\Osman Ali\Desktop\LSRRP.pwn(7561) : error 025: function heading differs from prototype
C:\Users\Osman Ali\Desktop\LSRRP.pwn(7581) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Dare Devil..... is offline   Reply With Quote
Old 20/06/2012, 01:25 PM   #9
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,421
Reputation: 273
Default Re: 5 errors

Since i don't have the include nor have i ever used it, i can't tell you exactly what to do.

But i will show you an example of what causes those warnings.

pawn Code:
forward SomeFunction( playerid, some_value );//function prototype

//notice the function header and prototype do not match
public SomeFunction( playerid, some_value, some_string[] )//function heading
{
    //error 025: function heading differs from prototype
}

The forward must match the function. Like the following code.
pawn Code:
forward SomeFunction( playerid, some_value, some_string[] );//function prototype

public SomeFunction( playerid, some_value, some_string[] )//function heading
{
    //heading matches prototype this is OK
}

With the first two errors i can't really be more clear than the compiler. IRC_SetIntData is not defined.
iggy1 is offline   Reply With Quote
Old 20/06/2012, 01:37 PM   #10
Dare Devil.....
Huge Clucker
 
Dare Devil.....'s Avatar
 
Join Date: Jan 2012
Location: Pakistan
Posts: 253
Reputation: 10
Default Re: 5 errors

After U defined it this give me this thing


C:\Users\Osman Ali\Desktop\LSRRP.pwn(470) : error 017: undefined symbol "E_IRC_CONNECT_DELAY"
C:\Users\Osman Ali\Desktop\LSRRP.pwn(470) : warning 215: expression has no effect
C:\Users\Osman Ali\Desktop\LSRRP.pwn(471) : error 017: undefined symbol "E_IRC_CONNECT_ATTEMPTS"
C:\Users\Osman Ali\Desktop\LSRRP.pwn(471) : warning 215: expression has no effect
C:\Users\Osman Ali\Desktop\LSRRP.pwn(7562) : error 025: function heading differs from prototype
C:\Users\Osman Ali\Desktop\LSRRP.pwn(7582) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Dare Devil..... 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
Facing errors.. Loads of errors.. TheNavigator Scripting Help 8 28/08/2011 09:13 PM
[ERRORS] Errors appear after adding a Gang System. ••• ĤÁĶÁM ••• Help Archive 17 27/10/2010 05:19 PM
[Errors]Compiling Errors SamAlexSam Help Archive 2 04/02/2010 01:31 PM
Common compiling errors - READ BEFORE POSTING ERRORS Streetplaya Help Archive 0 23/01/2010 11:20 AM
Shows Errors but no errors in this line Kane_Phoenix Help Archive 2 31/03/2009 02:38 PM


All times are GMT. The time now is 07:52 AM.


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