Help with zcmd
#1

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

Show the code without which I can't help.
Reply
#3

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

Here,

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

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

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

If i include, same.
Reply
#8

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

Yes, i downloaded
Reply
#10

And where you put it in?
Reply
#11

In ../pawno/includes folder.
Reply
#12

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

EDIT: FIXED
Reply
#14

Did you try

CMD:megaphone

Instead of

COMMAND:megaphone
Reply
#15

And... what was wrong?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)