Zcmd in FS + GM?
#1

Hey there!

Is it possible to run commands with ZCMD from the FS and from the GM at the same time? I'm experiencing an issue which is, that my FS commands are working, but not the GM's.

Any solution to fix this? Thanks
Reply
#2

#include <zcmd> in top...
Reply
#3

Done in both FS and GM :/
Reply
#4

do you have #include <zcmd> in both fs and gm?
Reply
#5

Yes I do
Reply
#6

then it's an unreachable code probably, in your gm are the commands all the way in the bottom?
Reply
#7

No, they are just before some stocks. This is the problem?

EDIT: Tried what you said, no effect.
Reply
#8

yep it's an unreachable code, do you get any errors? wanna team viewer i think i might be able to fix it.
Reply
#9

Well, I don't get any error.

No time for TW right now, here's the code of the GM if you want (just started it from scratch today)

Thanks
Reply
#10

what did i tell you
Код:
COMMAND:v(playerid, params[])
{
        new vehid;
        if(sscanf(params, "i", vehid))
        {
                SendClientMessage(playerid, -1, "no");
        }
        else
        {
                new Float:x, Float:y, Float:z;
                GetPlayerPos(playerid, x, y, z);
                CreateVehicle(vehid, x+1, y, z, 0.0, 0, 0, -1);
                return 1;
        }
}
 
COMMAND:kill(playerid, params[])
{
        SetPlayerHealth(playerid, 0.0);
        return 1;
}
always return 1; after a cmd...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)