Error with command
#1

Hi ive setup some commands for my realife RP,
pawn Код:
if(strcmp("/requestland", cmdtext, true, 10) == 0)
  {
    SendClientMessage(playerid, COLOR_GREY, "TXS Usage: /requestland[LS/LV/SF]");
    return 1;
    }
  if(strcmp("/requestlandLS", cmdtext, true, 10) == 0)
  {
    SendClientMessageToAll(COLOR_GREY, "%s to LS ATC, %s is requesting landing.");
    return 1;
    }
/requestland is set to say "TXS Usage: /requestland[LS/LV/SF]
And it does, But if i goto say
/requestlandLS, it says, "TXS Usage: /requestland[LS/LV/SF]
And its not supposed to, its supposed to say:
[name] to LS ATC, [name] is requesting landing,

Why is this
Reply
#2

Its to do with your OnPlayerCommandText not returning 0 or something
Reply
#3

https://sampwiki.blast.hk/wiki/Format
Reply
#4

After you have been there you will probably need these also.
pawn Код:
new playerName[MAX_PLAYER_NAME];

//and another line of code in command.

GetPlayerName(playerid, playerName, sizeof(playerName));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)