11.06.2012, 05:58
Код:
if(strcmp(cmd, "/train", true) == 0)
Код:
(34) : error 017: undefined symbol "cmd"
if(strcmp(cmd, "/train", true) == 0)
(34) : error 017: undefined symbol "cmd"
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/command here", cmdtext, true, 10) == 0)
{
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/_____", cmdtext, true, 10) == 0)
{
else SendClientMessage (playerid, COLOR_GREY, "That command does not exist.")
You need to download the include zcmd, mate.
https://sampforum.blast.hk/showthread.php?tid=91354 Regards, Connor. |
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
should be
pawn Код:
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/command here", true))
{
Thank you (*|Flake|*) It worked.
Cxnnor I know zcmd, but I don't want to use it. It's more confusing. Thank you Randy More but I think (*|Flake|*)'s one is more proper. |