"S@@_OnPlayerCommandText" is not implemented - 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)
+--- Thread: "S@@_OnPlayerCommandText" is not implemented (
/showthread.php?tid=486335)
"S@@_OnPlayerCommandText" is not implemented -
Brandon_More - 08.01.2014
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
Re: "S@@_OnPlayerCommandText" is not implemented -
newbie scripter - 08.01.2014
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.
}
Re: "S@@_OnPlayerCommandText" is not implemented -
amirab - 08.01.2014
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;
}
Re: "S@@_OnPlayerCommandText" is not implemented -
Brandon_More - 08.01.2014
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.
Re: "S@@_OnPlayerCommandText" is not implemented -
Sublime - 08.01.2014
pawn Код:
YCMD:test (playerid, params[], help)
{
return 1;
}
Why OnPlayerCommandText and put some command in it? Isn't it supposed to be cmdlist[]?
Re: "S@@_OnPlayerCommandText" is not implemented -
newbie scripter - 08.01.2014
nvm i thought u made a mistake in strcmp cmds.
Re: "S@@_OnPlayerCommandText" is not implemented -
Brandon_More - 08.01.2014
Fixed