SA-MP Forums Archive
LoopingAnim help - 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: LoopingAnim help (/showthread.php?tid=114885)



LoopingAnim help - Guso - 21.12.2009

When ever i do a LoopingAnim command in pawn i get errors am i missing a include or something?
I've tried searching around but didn't find any help.
Here is the code
Код:
  if(strcmp(cmd, "/rap", true) == 0) {

		  // Get the dance style param
   		tmp = strtok(cmdtext, idx);
			if(!strlen(tmp)) {
				SendClientMessage(playerid,0xFF0000FF,"Usage: /rap [style 1-3]");
				return 1;
			}

			rapstyle = strval(tmp);
			if(rapstyle < 1 || rapstyle > 3) {
			  SendClientMessage(playerid,0xFF0000FF,"Usage: /rap [style 1-3]");
			  return 1;
			}

			if(rapstyle == 1) {
 		  LoopingAnim(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0);
			} else if(rapstyle == 2) {
		  LoopingAnim(playerid,"RAPPING","RAP_B_Loop",4.0,1,1,1,1,0);
			} else if(rapstyle == 3) {
			LoopingAnim(playerid,"RAPPING","RAP_C_Loop",4.0,1,1,1,1,0);
			}
 	 		return 1;
		}
Alot of these errors -
C:\Program Files\Guso\Dvs\LSRP\IK RШR !\test.pwn(3885) : error 017: undefined symbol "LoopingAnim"


Re: LoopingAnim help - M4S7ERMIND - 21.12.2009

Check the gl_actions filterscript in filterscripts folder.. or if you want, you can replace LoopingAnim with ApplyAnimation