dcmd and usually cmds?
#1

Is that possible to call out in /test dcmd command test?
Reply
#2

I don't quite know what you mean. If you mean to do a test command using DCMD to make sure it works it would be pretty simple.

pawn Код:
dcmd_test(playerid, params[])
{
     SendClientMesage(playerid, COLOR_WHITE, "It works!");
     return 1;
}
Reply
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
I don't quite know what you mean. If you mean to do a test command using DCMD to make sure it works it would be pretty simple.

pawn Код:
dcmd_test(playerid, params[])
{
     SendClientMesage(playerid, COLOR_WHITE, "It works!");
     return 1;
}
add #pragma unused params
up of the client message
Reply
#4

i mean
pawn Код:
dcmd_test(playerid, params[])
{
     SendClientMesage(playerid, COLOR_WHITE, "It works!");
     return 1;
}
if(strcmp(cmdtext, "/test", true) == 0)
{
   dcmd(test,4,cmdtext);
}
Reply
#5

Quote:
Originally Posted by whitedragon
Посмотреть сообщение
i mean
pawn Код:
dcmd_test(playerid, params[])
{
     SendClientMesage(playerid, COLOR_WHITE, "It works!");
     return 1;
}
if(strcmp(cmdtext, "/test", true) == 0)
{
   dcmd(test,4,cmdtext);
}
Oh... It should look like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(test,4,cmdtext);
    return 0;
}

dcmd_test(playerid, params[])
{
     SendClientMesage(playerid, COLOR_WHITE, "It works!");
     return 1;
}
The actual command doesn't go inside the "OnPlayerCommandText" callback - only the "dcmd(test, 4, cmdtext);" thing.
Reply
#6

that is not the command what i need... I need use in system ь char but i dont want write all code over..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)