SA-MP Forums Archive
Error with command - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error with command (/showthread.php?tid=64631)



Error with command - JoeDaDude - 05.02.2009

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


Re: Error with command - ICECOLDKILLAK8 - 05.02.2009

Its to do with your OnPlayerCommandText not returning 0 or something


Re: Error with command - Mikep - 05.02.2009

https://sampwiki.blast.hk/wiki/Format


Re: Error with command - Auto-Sized - 05.02.2009

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));