SA-MP Forums Archive
Hey all. - 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: Hey all. (/showthread.php?tid=381951)



Hey all. - Gangster-rocks - 01.10.2012

How can i use forward public function?


Re: Hey all. - newbienoob - 01.10.2012

Just forward them?

pawn Код:
forward test();
public test()
{

//or
forward test(playerid);
public test(playerid)
{



Re: Hey all. - trapstar2020 - 01.10.2012

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Just forward them?

pawn Код:
forward test();
public test()
{

//or
forward test(playerid);
public test(playerid)
{
pawn Код:
forward test();
public test()
{
//function u want to be done here
}
//or
forward test(playerid);
public test(playerid)
{
//place fuction u want to be done here
}



Re: Hey all. - Danyal - 01.10.2012

Quote:
Originally Posted by trapstar2020
Посмотреть сообщение
pawn Код:
forward test();
public test()
{
//function u want to be done here
}
//or
forward test(playerid);
public test(playerid)
{
//place fuction u want to be done here
}
The best way is to forwad by this way rather than above way
pawn Код:
forward public test();
public test()
{
    //function u want to be done here
}

forward public test(playerid);
public test(playerid)
{
    //place fuction u want to be done here
}
Quote:

The only difference, it seems, is it enforces some extra restrictions. By SLICE




Re: Hey all. - dannyk0ed - 01.10.2012

I would only make forwards for timers. And using stocks
pawn Код:
stock test(playerid)
{
//function
}



Re: Hey all. - Gangster-rocks - 01.10.2012

Ok thanks all