SA-MP Forums Archive
Streamer Issues - 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: Streamer Issues (/showthread.php?tid=506630)



Streamer Issues[+rep will be given] - MrCallum - 13.04.2014

I have made a command so it does /addcrane and a crane appears and /destroycrane so it gets dismantled instantly
but the object does not show why? i believe its to do with streamer
this works on other script than mine, i also have a gate system ((/gedit)) that does not work here but on other servers it does.

Crane commands

Код:
new CraneObject;

CMD:addcrane(playerid, params[])
{
    new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
    GetPlayerPos(playerid, X, Y, Z);
    CraneObject = CreateDynamicObject(1378, X, Y, Z, 0.00, 0.00, 0.00, 0, 0, -1, 300.0);
    SendClientMessage(playerid, COLOR_GREEN, "Crane Deployed");
    EditObject(playerid, CraneObject);

    return 1;
}

CMD:destroycrane(playerid, params[])
{
    DestroyDynamicObject(CraneObject);
    SendClientMessage(playerid, COLOR_GREEN, "Crane Destroyed");
    return 1;
}



Re: Streamer Issues - MrCallum - 13.04.2014

+Reps shall be given


Re: Streamer Issues - AIped - 13.04.2014

make sure you have the latest version of streamer and sscanf2 and zcmd


Re: Streamer Issues - MrCallum - 13.04.2014

I do but it still does not work!
It says it has deployed but does not show


Код:
You cant get anywhere in life without PAWNO



Re: Streamer Issues - Chenko - 13.04.2014

Make sure your virtual world is 0. Try replacing the two 0's before the -1 with -1 as well. So it'll look like this:

Код:
CraneObject = CreateDynamicObject(1378, X, Y, Z, 0.00, 0.00, 0.00, -1, -1, -1, 300.0);



Re: Streamer Issues - MrCallum - 13.04.2014

+repped Chenko thank bro for helping me