SA-MP Forums Archive
About forward - 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)
+--- Thread: About forward (/showthread.php?tid=332246)



About forward - DayaKisteme - 07.04.2012

Код:
forward bool:SendMessage(colour,text[]);
public bool:SendMessage(colour,text[])
or

Код:
forward SendMessage(colour,text[]);
public SendMessage(colour,text[])
What is the difference...


Re: About forward - Kindred - 07.04.2012

Honestly never used Boolean's before, but if not correct, they can only be assigned either true or false. I don't see why you would forward a Boolean, nor do I know if it's possible.

I suggest searching Boolean's and read more about them, I can't really explain them, or you could wait for someone else to reply, of course.

Good Luck.


Re: About forward - park4bmx - 07.04.2012

if you want to use a bool (true/false) then the currect way is this.
pawn Код:
forward SendMessage(bool:colour,text[]);
you only want the colour to be represented as bool
this type of defines can only be used inside the brackets that your forwarded or used stock!