/stop - 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)
+--- Thread: /stop (
/showthread.php?tid=433500)
/stop -
Jimmy0wns - 27.04.2013
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.
Re: /stop -
Faisal_khan - 27.04.2013
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;
}