What Am I doing wrong?
#7

double post!

Depends on how most your commands are. If most of your commands are like this:
i.e. it has new string somewhere in the command...
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
    {
      if(!cmdtext[3]) return SendClientMessage(playerid, 0xFF0000FF, "USAGE/UŻYCIE: /me [action/akcja]");
      new string[128], name[16]; // new "string" here!!!
      GetPlayerName(playerid, name, sizeof(name));
      format(string, 128, "*** %s %s", name, cmdtext[4]);
      SendClientMessageToAll(COLOR_LIGHTGREEN, string);
      return 1;
    }
..then remove the new string under OnPlayerCommandText.

If not, then delete new string from that command. The error message is saying that you have two strings named "string" at the same time.
Reply


Messages In This Thread
What Am I doing wrong? - by Puzi - 30.05.2009, 13:45
Re: What Am I doing wrong? - by Think - 30.05.2009, 13:48
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 13:49
Re: What Am I doing wrong? - by Think - 30.05.2009, 13:50
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 13:53
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:03
Re: What Am I doing wrong? - by member - 30.05.2009, 14:07
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:34
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:47

Forum Jump:


Users browsing this thread: 4 Guest(s)