Streamer Issues
#1

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

+Reps shall be given
Reply
#3

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

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
Reply
#5

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

+repped Chenko thank bro for helping me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)