forward'n?
#1

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);
}
Reply
#2

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.
Reply
#3

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

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)