Problem with cmd
#1

Hello guys, I want to create a script that when a player type "lol" is applied to the animation and get an action.
I put this in OnPlayerText but it not work.

pawn Код:
new sendername[MAX_PLAYER_NAME];
    if (strcmp("lol", tmp, true) == 0)
    {
          format(string, sizeof(string), "* %s ride con gusto", sendername);
          ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0, 1);
          return 1;
    }
I try to put in OnPlayerCommandText with this code:
pawn Код:
if (strcmp("lol", cmdtext, true) == 0)
    {
          format(string, sizeof(string), "* %s ride con gusto", sendername);
          ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0, 1);
          return 1;
    }
is compiled successfully, but does not work in any case

Sorry for my bad english з_з
Reply


Messages In This Thread
Problem with cmd - by Daniele_Pelle - 08.09.2010, 20:47
Re: Problem with cmd - by Daniele_Pelle - 09.09.2010, 09:34
Re: Problem with cmd - by Mikkel_Pedersen - 09.09.2010, 09:40
Re: Problem with cmd - by MartinDee - 09.09.2010, 09:41
Re: Problem with cmd - by Daniele_Pelle - 09.09.2010, 09:42
Re: Problem with cmd - by LarzI - 09.09.2010, 09:46
Re: Problem with cmd - by New_Player[USW] - 09.09.2010, 10:59
Re: Problem with cmd - by LarzI - 09.09.2010, 11:01

Forum Jump:


Users browsing this thread: 1 Guest(s)