Thread: ScriptHook
View Single Post
Old 04-06-2009   #4
rappo
Professional Dumbass
 
rappo's Avatar
 
Join Date: Aug 2003
Location: Los Angeles
Posts: 6,965
rappo is a God.rappo is a God.rappo is a God.rappo is a God.rappo is a God.rappo is a God.rappo is a God.rappo is a God.rappo is a God.rappo is a God.rappo is a God.
Your Scripting.h file should look like this:

Code:
#pragma once

#include "../ScriptHook/Scripting.h"

namespace Scripting {
	static void TaskPlayAnim(Ped ped, const ch *animSequence, const ch *animName, f32 speed, int loop, f32 x, f32 y, f32 z, int ms) { NativeInvoke::Invoke("TASK_PLAY_ANIM", ped, animSequence, animName, speed, loop, x, y, z, ms); }
}
The syntax you put isn't correct, so change it to the one I gave above and see if that helps. If not, post the new error it gives!
rappo is offline   Reply With Quote