Warning 235 Problem.
#1

Well, basically, I'm unsure how to fixing:

warning 235: public function lacks forward declaration (symbol "OnPlayerSTATEChange")

I've tried the Case Sensitive differences, Such as 'OnPlayerStateChange'

Full line :- public OnPlayerSTATEChange(playerid, newState, oldState)

If you got any suggestions / Solutions. Lemme know please. Thanks.
Reply
#2

Above your line put:

pawn Код:
forward OnPlayerSTATEChange(playerid, newState, oldState);
BTW. Why the caps ?
Reply
#3

Quote:
Originally Posted by Bliitzz
Посмотреть сообщение
Well, basically, I'm unsure how to fixing:
warning 235: public function lacks forward declaration (symbol "OnPlayerSTATEChange")
[/I]
This tells you that the public "OnPlayerSTATEChange" needs an forward

pawn Код:
forward OnPlayerSTATEChange(playerid, oldstate, newstate);
But btw in SA-MP is default

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
Reply
#4

Well, If i use 'OnPlayerStateChange' - When i compile i get: error 025: function heading differs from prototype

When i use 'OnPlayerSTATEChange' - When i compile i get: warning 235: public function lacks forward declaration (symbol "OnPlayerSTATEChange")

When i place the Line you both quoted, above my original line When i compile I get: error 025: function heading differs from prototype
Reply
#5

Quote:
Originally Posted by Bliitzz
Посмотреть сообщение
Well, If i use 'OnPlayerStateChange' - When i compile i get: error 025: function heading differs from prototype

When i use 'OnPlayerSTATEChange' - When i compile i get: warning 235: public function lacks forward declaration (symbol "OnPlayerSTATEChange")

When i place the Line you both quoted, above my original line When i compile I get: error 025: function heading differs from prototype
Because the line is supposed to be:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
That's samp default, as you've already been told.
Reply
#6

@Bliitzz: Your Problem is that you dont use the right SA:MP Callback. You have:
pawn Код:
public OnPlayerStateChange(playerid,oldstate,newstate)
but it must be: (change it to this!)
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
Reply
#7

& I can add the 'Forward' line, just in the line, right above my original line, and it should be fine, Yeah?
Reply
#8

Quote:
Originally Posted by Pablo Borsellino
Посмотреть сообщение
@Bliitzz: Your Problem is that you dont use the right SA:MP Callback. You have:
pawn Код:
public OnPlayerStateChange(playerid,oldstate,newstate)
but it must be: (change it to this!)
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
As he's 'ALREADY BEEN TOLD'.
Reply
#9

You donґt have to forward standard SA-MP callbacks.
Reply
#10

If i just simply change my original line, to this - 'public OnPlayerStateChange(playerid,newstate,oldstate)'

All i get is 5 Errors, but i think i can work round to fixing those seperately.
Reply
#11

Quote:
Originally Posted by Bliitzz
Посмотреть сообщение
If i just simply change my original line, to this - 'public OnPlayerStateChange(playerid,newstate,oldstate)'

All i get is 5 Errors, but i think i can work round to fixing those seperately.
Debug those 5 error's then, or aleast show us them.
Reply
#12

Yeah, it's all good now, Thanks alot people..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)