"S@@_OnPlayerCommandText" is not implemented
#1

Changed my command processor from ZCMD to YCMD. I keep getting this error.

Код:
error 004: function "S@@_OnPlayerCommandText" is not implemented
pawn Код:
OnPlayerCommandText(playerid, "/fon");
Also this:
Код:
\pawno\include\YSI\y_commands.inc(2400) : warning 219: local variable "hash" shadows a variable at a preceding level
Reply
#2

its an callback
it shoudl be like
pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/cmdname", cmdtext, 0))// if he/she typed the cmd
    {
        // what to do.
        return 1;
    }
    return 0; // if he typed an unknown cmd, it say SERVER:Unknown Command.
}
Reply
#3

WTF !!!!
OnPlayerCommandText(playerid, "/fon");
what's this?!
if your'e using zcmd
your commands should be llike this

CMD:yourcommand(playerid , params[])
{

your code here
return 1;
}
Reply
#4

Ok, amirab. Thanks for that.

newbie... I am sure there is an easier and more nicer way to lay the commands out. Since it is the most "efficient" command processor.
Reply
#5

pawn Код:
YCMD:test (playerid, params[], help)
{
     return 1;
}
Why OnPlayerCommandText and put some command in it? Isn't it supposed to be cmdlist[]?
Reply
#6

nvm i thought u made a mistake in strcmp cmds.
Reply
#7

Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)