SA-MP Forums Archive
Help with zcmd - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with zcmd (/showthread.php?tid=152451)



Help with zcmd - povilaslt2 - 04.06.2010

Hi i got problem with zcmd

When i trying to compile, i getting these errors :/

Код:
C:\Users\Donatas\Desktop\Kaimeliai\gamemodes\Kaimeliai.pwn(744) : error 029: invalid expression, assumed zero
C:\Users\Donatas\Desktop\Kaimeliai\gamemodes\Kaimeliai.pwn(744) : error 017: undefined symbol "cmd_megaphone"
C:\Users\Donatas\Desktop\Kaimeliai\gamemodes\Kaimeliai.pwn(744) : error 029: invalid expression, assumed zero
C:\Users\Donatas\Desktop\Kaimeliai\gamemodes\Kaimeliai.pwn(744) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
COMMAND:megaphone(playerid, params[])
{
SendClientMessageToAll(playerid,COLOR,"Hi All");
  return 1;
}



Re: Help with zcmd - DJDhan - 04.06.2010

Show the code without which I can't help.


Re: Help with zcmd - cessil - 04.06.2010

you could like, post line 744.
ya know since that would help.


Re: Help with zcmd - povilaslt2 - 04.06.2010

Here,

Код:
COMMAND:megaphone(playerid, params[])
{
SendClientMessageToAll(playerid,COLOR,"Hi All");
  return 1;
}



Re: Help with zcmd - Babul - 04.06.2010

the SendClientMessageToAll() dosnt get the playerid, since it sends the text to all players...
Код:
COMMAND:megaphone(playerid, params[])
{
	SendClientMessageToAll(COLOR,"Hi All");
	return 1;
}



Re: Help with zcmd - Jonni8 - 04.06.2010

did you include zcmd right?
pawn Код:
#include <zcmd>
otherwise try
pawn Код:
CMD:megaphone(playerid, params[])
and put the code like this:
pawn Код:
CMD:megaphone(playerid, params[])
{
   SendClientMessageToAll(ORANGE, "Hi All");
   return 1;
}
so use the <TAB> Button


Re: Help with zcmd - povilaslt2 - 04.06.2010

If i include, same.


Re: Help with zcmd - Jonni8 - 04.06.2010

did you download the include file??
if not.. do it and then include


Re: Help with zcmd - povilaslt2 - 04.06.2010

Yes, i downloaded


Re: Help with zcmd - Jonni8 - 04.06.2010

And where you put it in?



Re: Help with zcmd - povilaslt2 - 04.06.2010

In ../pawno/includes folder.


Re: Help with zcmd - Jonni8 - 04.06.2010

hm okay that seems to be right...
maybe try another zcmd include? i use this one:
http://forum.sa-mp.com/index.php?act...5.0;attach=979
and then try again


Re: Help with zcmd - povilaslt2 - 04.06.2010

EDIT: FIXED


Re: Help with zcmd - NewTorran - 04.06.2010

Did you try

CMD:megaphone

Instead of

COMMAND:megaphone


Re: Help with zcmd - Jonni8 - 04.06.2010

And... what was wrong?