Little ZCMD question.
#1

Kinda beginner with zcmd, can you tell me where to write the return 0 instead of return 1?

Under OnPlayerCommandPerformed or Recieved?
Reply
#2

For what?
Reply
#3

For giving out a message like SERVER: Unknown Command.
I tried this once, but each command gives me an error with Unknown command even if it works..
Reply
#4

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
   if(success == 0) return SendClientmessage(playerid, 0, "SERVER: Unknown command.");
}
Reply
#5

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
   if(success == 0) return SendClientmessage(playerid, 0, "SERVER: Unknown command.");
}
And

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    printf("%s(%d) Used Command - %s",Playername(playerid),playerid,cmdtext);
    return 1;
}
Reply
#6

Thanks a lot, glad that I asked...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)