SA-MP Forums Archive
[Help] Error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Error (/showthread.php?tid=136046)



[Help] Error - Pantontini - 22.03.2010

Код:
C:\Users\Daniel\Downloads\1.8.pwn(6172) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Daniel\Downloads\1.8.pwn(18514) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
When I try to compile this errors come out.


Re: [Help] Error - adsy - 22.03.2010

Код:
forward FUNCTIONNAMETHATSMISSINGHERE(VARIABLES FROM PUBLIC COPIED HERE);



Re: [Help] Error - XGh0stz - 23.03.2010

Quote:
Originally Posted by adsy
Код:
forward FUNCTIONNAMETHATSMISSINGHERE(VARIABLES FROM PUBLIC COPIED HERE);
That's right, but seems you probably need a little bit more detail.. So

Added to the top of your script
pawn Код:
forward OnPlayerPrivmsg(playerid);
forward OnPlayerInfoChange(playerid);
Now I'm just guessing you use "playerid" as the variable(s), otherwise adjust them to fit your fuction...


Re: [Help] Error - adsy - 23.03.2010

Quote:
Originally Posted by XGh0stz
Quote:
Originally Posted by adsy
Код:
forward FUNCTIONNAMETHATSMISSINGHERE(VARIABLES FROM PUBLIC COPIED HERE);
That's right, but seems you probably need a little bit more detail.. So

Added to the top of your script
pawn Код:
forward OnPlayerPrivmsg(playerid);
forward OnPlayerInfoChange(playerid);
Now I'm just guessing you use "playerid" as the variable(s), otherwise adjust them to fit your fuction...
i wasnt sure what variables were forwarded, at the time i was at work so if they were on the wiki i couldnt check them.

thanks


Re: [Help] Error - Pantontini - 23.03.2010

Okay thank you!

But now

Код:
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(6174) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: [Help] Error - adsy - 23.03.2010

this must look like the original

ie

forward OnPlayerPrivmsg(playerid);

must look like

public OnPlayerPrivmsg(.. .. the bits that are here .. ..){


Re: [Help] Error - Pantontini - 24.03.2010

I dont understand.

I putted public OnPlayerPrivmsg(playerid); = 7 Errors

public onPlayerPrivMsg(playerid){ = 15 Errors

I


Re: [Help] Error - adsy - 24.03.2010

Quote:
Originally Posted by Pantontini
I dont understand.

I putted public OnPlayerPrivmsg(playerid); = 7 Errors

public onPlayerPrivMsg(playerid){ = 15 Errors

I
look like not copy

right


put these lines next to each other 1 above the other

Код:
forward onPlayerPrivMsg(playerid);
public onPlayerPrivMsg(playerid){
the bit in brackets at the end (playerid in this case) should look the same in the forward as it does in the public



Re: [Help] Error - Pantontini - 24.03.2010

Sorry if im kinda noob but this is the code;

Код:
// Game Mode Includes
#include <a_samp>
#include <core>
#include <file>
#include <float>
#include <dprop>
#include <dutils>
#include <dudb>
#include <a_irc>
forward onPlayerPrivMsg(playerid);
public onPlayerPrivMsg(playerid){
forward OnPlayerInfoChange(playerid);
and when I try to compile

Код:
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(19) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(19) : error 017: undefined symbol "OnPlayerInfoChange"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(159) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(159) : error 017: undefined symbol "AutoRobbedRecent"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(160) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(160) : error 017: undefined symbol "BanExplosionone"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(161) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(161) : error 017: undefined symbol "BanExplosiontwo"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(162) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(162) : warning 221: label name "Float" shadows tag name
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(162) : error 017: undefined symbol "GetDistanceBetweenPlayers"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(163) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(163) : error 017: undefined symbol "PilotOffDutyCriminal"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(164) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(164) : error 017: undefined symbol "OrderedPlaneRecentlyTimer"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(165) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(165) : error 017: undefined symbol "UsedAirPortRecentlyTimer"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(166) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(166) : error 017: undefined symbol "UsedFORecentlyTimer"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(167) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(167) : error 017: undefined symbol "PlaneDriverTimer"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(168) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(168) : error 017: undefined symbol "PlanePassengerTimer"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(169) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(169) : error 017: undefined symbol "UsedAutoRecentlyTimer"
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(170) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Pity's Cops&Robbers\gamemodes\1.8.pwn(170) : error 017: undefined symbol "RobbedDrugsRecentlyTimer"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.