SA-MP Forums Archive
forward'n? - 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: forward'n? (/showthread.php?tid=83444)



forward'n? - Abernethy - 25.06.2009

What's the purpose of "forwarding"

Like,
pawn Код:
forward Car

public Car
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    CreateVehicle(560, x, y, z, 0.0, 1, 1, 1);
}



Re: forward'n? - bigcomfycouch - 25.06.2009

Try something more along the lines of this:

forward Car(playerid);

Код:
public Car(playerid)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    CreateVehicle(560, x, y, z, 0.0, 1, 1, 1);
}
The playerid will not, I repeat, will not work unless you call this function through a function already made in SA-MP. In this case I'm guessing it would be used in a command.


Re: forward'n? - Abernethy - 25.06.2009

Yeah not really what I was asking but you know.
Can I make anything using forward, that has an effect?


Re: forward'n? - bigcomfycouch - 25.06.2009

You can make nearly anything as long as it has some SA-MP callback or function to be called through so that it has actual meaning for the code(rather sure on this)