Zcmd in FS + GM? - 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: Zcmd in FS + GM? (
/showthread.php?tid=445332)
Zcmd in FS + GM? -
Steeve_Smith - 20.06.2013
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
Re: Zcmd in FS + GM? -
SwisherSweet - 20.06.2013
#include <zcmd> in top...
Re : Zcmd in FS + GM? -
Steeve_Smith - 20.06.2013
Done in both FS and GM :/
Re: Zcmd in FS + GM? -
SwisherSweet - 20.06.2013
do you have #include <zcmd> in both fs and gm?
Re : Zcmd in FS + GM? -
Steeve_Smith - 20.06.2013
Yes I do
Re: Zcmd in FS + GM? -
SwisherSweet - 20.06.2013
then it's an unreachable code probably, in your gm are the commands all the way in the bottom?
Re : Zcmd in FS + GM? -
Steeve_Smith - 20.06.2013
No, they are just before some stocks. This is the problem?
EDIT: Tried what you said, no effect.
Re: Zcmd in FS + GM? -
SwisherSweet - 20.06.2013
yep it's an unreachable code, do you get any errors? wanna team viewer i think i might be able to fix it.
Re : Zcmd in FS + GM? -
Steeve_Smith - 20.06.2013
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
Re: Zcmd in FS + GM? -
SwisherSweet - 20.06.2013
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...