"Groups" to "Factions"
#1

Im using a script that my mate gave me before going on holiday and i just went through the script changing all of the "Group"s to "Faction"s and all the "group"s to "faction"s but when i compile it gives me an error
Код:
(10287) : warning 219: local variable "Faction" shadows a variable at a preceding level
and the line "10287" is
Код:
public LiteralFactionMessage(Faction, colour, string[])
so i changed it to
Код:
public LiteralFactionMessage(faction, colour, string[])
but then i got this Error:
Код:
(10287) : error 025: function heading differs from prototype
any help is Hugely appreciated Thanks
Reply
#2

public LiteralFactionMessage(faction, colour, string[]); is correct.
You have to forward it with the right names too. So forward it like:
forward LiteralFactionMessage(faction, colour, string[]);
Reply
#3

Ahh, ok, but then why am i getting this error?
Код:
(10287) : error 025: function heading differs from prototype
Reply
#4

Did you change the forward also?
Reply
#5

no..... lol my bad ill try it
Reply
#6

ok, well i had a look and i can't seem to find the forward what should it look like and where abouts should i find it?
:/
Reply
#7

public LiteralFactionMessage(Faction, colour, string[])
Reply
#8

then how do i fix this?
Код:
(10287) : warning 219: local variable "Faction" shadows a variable at a preceding level
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)