#1

Hello, im working on a stop animation command, but i cant get it working:

Код:
if (strcmp("/stop", cmdtext, true, 10) == 0)
 	{
		if GetPlayerSpecialAction(playerid, 0)
		{
   			SendClientMessage(playerid, 0xffffffff, "You are not in an animation");
		}
	else
   		SetPlayerSpecialAction(playerid, 0);
     	SendClientMessage(playerid, 0xffffffff, "You have stopped your current animation");
 	}
   return 1;
}
The errors:
Код:
C:\Users\PC1\Desktop\Servers\SA-MP Server\gamemodes\pilot.pwn(644) : error 010: invalid function or declaration
C:\Users\PC1\Desktop\Servers\SA-MP Server\gamemodes\pilot.pwn(646) : error 010: invalid function or declaration
C:\Users\PC1\Desktop\Servers\SA-MP Server\gamemodes\pilot.pwn(650) : error 010: invalid function or declaration
C:\Users\PC1\Desktop\Servers\SA-MP Server\gamemodes\pilot.pwn(654) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

WTF are you doing man!
pawn Код:
if (strcmp("/stop", cmdtext, true, 10) == 0)
    {
        if(GetPlayerSpecialAction(playerid) == 0)
        {
            SendClientMessage(playerid, 0xffffffff, "You are not in an animation");
        }
    else
        SetPlayerSpecialAction(playerid, 0);
        SendClientMessage(playerid, 0xffffffff, "You have stopped your current animation");
    }
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)