PDA

View Full Version : 5 errors


Dare Devil.....
20/06/2012, 09:24 AM
5 errors how do I fix em?

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.

iggy1
20/06/2012, 09:29 AM
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.

Dare Devil.....
20/06/2012, 09:46 AM
I placed IRC.inc in my includes folder what should I do next this is Los Santos Prison Roleplay Game Mode

iggy1
20/06/2012, 09:53 AM
Have you included it in your mode/fs?

#include <IRC>

Dare Devil.....
20/06/2012, 10:38 AM
Yes I have done it its the error in Los Santos
Prison Roleplay

Skaizo
20/06/2012, 11:19 AM
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

Dare Devil.....
20/06/2012, 01:06 PM
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.....
20/06/2012, 01:13 PM
Sorry for double post not it gives four errors


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.

iggy1
20/06/2012, 01:25 PM
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.

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

Dare Devil.....
20/06/2012, 01:37 PM
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.