undefined symbol ++REP
#1

PHP код:
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : error 017undefined symbol "@yC_me"
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : error 017undefined symbol "@yC_me"
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : error 017undefined symbol "i"
C:\Documents and Settings\user\щемзп дтбегд\Server\gamemodes\Pursuits.pwn(565) : fatal error 107too many error messages on one line 
The specific line:
PHP код:
YCMD:me(playeridparams[]) 
The whole function:
PHP код:
YCMD:me(playeridparams[])
{
    if (
isnull(params))
    {
        
format(stringsizeof(string), "[USAGE:] /me [Action]");
        
SendClientMessage(playeridCOLOR_WHITEstring);
    }
    else
    {
    
format(stringsizeof(string), "* %s %s"GetPlayerName(playerid), params);
    
SendClientMessageToAll(0xFF0000AAstring);
    }
    return 
1;

Reply
#2

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

I already got it and set the includes.
PHP код:
#include <YSI\y_commands>
#include <YSI\y_master> 
Reply
#4

Try using strcmp.
Reply
#5

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

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

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

Still not working even if I use this:
PHP код:
YCMD:me(playeridparams[], me
Reply
#9

Quote:
Originally Posted by Tomer!.$
Посмотреть сообщение
Still not working even if I use this:
PHP код:
YCMD:me(playeridparams[], me
pawn Код:
YCMD:me(playerid, params[], help)
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)