undefined symbol ++REP -
Tomer!.$ - 07.04.2012
PHP код:
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : error 017: undefined symbol "@yC_me"
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : error 017: undefined symbol "@yC_me"
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : error 017: undefined symbol "i"
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : fatal error 107: too many error messages on one line
The specific line:
PHP код:
YCMD:me(playerid, params[])
The whole function:
PHP код:
YCMD:me(playerid, params[])
{
if (isnull(params))
{
format(string, sizeof(string), "[USAGE:] /me [Action]");
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
format(string, sizeof(string), "* %s %s", GetPlayerName(playerid), params);
SendClientMessageToAll(0xFF0000AA, string);
}
return 1;
}
Re: undefined symbol ++REP -
Faisal_khan - 07.04.2012
You dont have the YCMD include search it on the forum and download it or use this one,
pawn Код:
if (strcmp("/me", cmdtext, true, 2) == 0)
{
if (isnull(params))
{
format(string, sizeof(string), "[USAGE:] /me [Action]");
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
format(string, sizeof(string), "* %s %s", GetPlayerName(playerid), params);
SendClientMessageToAll(0xFF0000AA, string);
}
return 1;
}
OR
Here is YCMD Install it and use
[Include] y_commands (YCMD) - Most flexible and fastest command processor
Re: undefined symbol ++REP -
Tomer!.$ - 07.04.2012
I already got it and set the includes.
PHP код:
#include <YSI\y_commands>
#include <YSI\y_master>
Re: undefined symbol ++REP -
Faisal_khan - 07.04.2012
Try using strcmp.
Re: undefined symbol ++REP -
Reklez - 07.04.2012
i see the problem
change
pawn Код:
YCMD:me(playerid, params[])
to
pawn Код:
YCMD:me(playerid, params[], me)
Quote:
Originally Posted by Faisal_khan
Try using strcmp.
|
Seriously, before posting i will give little trivia.
strcmp is use in SAMP Scripting, but since when the modern command include was release strcmp is getting old until it became known as 'slow'
Re: undefined symbol ++REP -
Faisal_khan - 07.04.2012
Quote:
Originally Posted by Reklez
i see the problem
change
pawn Код:
YCMD:me(playerid, params[])
to
pawn Код:
YCMD:me(playerid, params[], me)
|
Hmm... anyway ty i did'nt nticed that.
Re: undefined symbol ++REP -
Reklez - 07.04.2012
One little note:
YCMD is very different with ZCMD
Like ****** said, YCMD uses the same function of ZCMD for the same fast command processor.
but the usage is very different
Re: undefined symbol ++REP -
Tomer!.$ - 07.04.2012
Still not working even if I use this:
PHP код:
YCMD:me(playerid, params[], me)
Re: undefined symbol ++REP -
Mark™ - 07.04.2012
Quote:
Originally Posted by Tomer!.$
Still not working even if I use this:
PHP код:
YCMD:me(playerid, params[], me)
|
pawn Код:
YCMD:me(playerid, params[], help)
Re: undefined symbol ++REP -
Tomer!.$ - 07.04.2012
Thanks for trying but it's still not working
Note: I even tried to put ******' original /me command from his y_commands tutorial and I get the same errors.