SA-MP Forums Archive
Special function - 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: Special function (/showthread.php?tid=162994)



Special function - Jamal' - 25.07.2010

Hello can someone help me?Ty
Im addinng one special function to my scrypt but i get one error:

C:\Users\hpi\Desktop\GTA Pawn\mtrp-final\My filterscrypts\DANCING\DANCING\DANCING.pwn(4) : warning 201: redefinition of constant/macro (symbol "SPECIAL_ACTION_DANCE1")

In main i got #define SPECIAL_ACTION_DANCE1 69

And this function but it do error :\

else if (strcmp(cmdtext, "/dance1", true)==0)
{
if (GetPlayerState(playerid)== 1)
{
ApplyAnimation(playerid,"DANCING", "bd_clap", 4.0, 1, 0, 0, 0, 0);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE1);
}
return 1;


Re: Special function - Kar - 25.07.2010

remove #define special_ACTION_DANCE1 69


Re: Special function - Jamal' - 25.07.2010

I dont need define it?


Re: Special function - Jamal' - 25.07.2010

Thanks it worts