In need of help with Creating CreateDynamicObject
#1

I was wondering how to convert from CreateObject to CreateDynamicObject? I tried this...
Код:
/* SA-MP Object Functions
 *
 * © Copyright 2005-2009, SA-MP Team
 *
 * Edited by Gamer_Z
 */

#if defined _objects_included
#endinput
#endif
#define _objects_included
#pragma library objects


native CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
native SetPlayerObjectPos(playerid, objectid, Float:X, Float:Y, Float:Z);
native GetPlayerObjectPos(playerid, objectid, &Float:X, &Float:Y, &Float:Z);
native SetPlayerObjectRot(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ);
native GetPlayerObjectRot(playerid, objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
native IsValidPlayerObject(playerid, objectid);
native DestroyPlayerObject(playerid, objectid);
native MovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed);
native StopPlayerObject(playerid, objectid);
native AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
native AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);

#include <streamer>

// Objects

stock CreateObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz){
    return CreateDynamicObject(modelid, x, y, z, rx, ry, rz,0,-1,-1,300.0);
}

/*stock CREATEOBJECT(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0){
    return CreateDynamicObject(modelid, x, y, z, rx, ry, rz,worldid,interiorid,playerid,distance);
}*/

stock SetObjectPos(objectid, Float:X, Float:Y, Float:Z){
    return SetDynamicObjectPos(objectid, X, Y, Z);
}

stock GetObjectPos(objectid, &Float:x, &Float:y, &Float:z){
    return GetDynamicObjectPos(objectid, x, y, z);
}

stock SetObjectRot(objectid, Float:RotX, Float:RotY, Float:RotZ){
    return SetDynamicObjectRot(objectid, RotX, RotY, RotZ);
}

stock GetObjectRot(objectid, &Float:RotX, &Float:RotY, &Float:RotZ){
    return GetDynamicObjectRot(objectid, RotX, RotY, RotZ);
}

stock IsValidObject(objectid){
    return IsValidDynamicObject(objectid);
}

stock DestroyObject(objectid){
    return DestroyDynamicObject(objectid);
}

stock MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed){
    return MoveDynamicObject(objectid, X, Y, Z, Speed);
}

stock StopObject(objectid){
    return StopDynamicObject(objectid);
}

stock DestroyAllObjects(){
    return DestroyAllDynamicObjects();
}

stock CountObjects(){
    return CountDynamicObjects();
}
But i get this when i compile...

Код:
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(102) : error 070: rational number support was not enabled
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(116) : error 070: rational number support was not enabled
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(124) : error 070: rational number support was not enabled
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(135) : error 070: rational number support was not enabled
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(146) : error 070: rational number support was not enabled
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(154) : error 017: undefined symbol "INVALID_PLAYER_ID"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(205) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(209) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(210) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(211) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(212) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(213) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(214) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(215) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(219) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(221) : error 017: undefined symbol "CallLocalFunction"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(235) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(239) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(240) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(241) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(242) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(243) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(244) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(245) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(249) : error 017: undefined symbol "funcidx"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(251) : error 017: undefined symbol "CallLocalFunction"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(265) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(267) : error 017: undefined symbol "IsPlayerNPC"
C:\Documents and Settings\Mitch Baker\Desktop\AL-RP\pawno\include\streamer.inc(273) : error 017: undefined symbol "CallLocalFunction"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Do i need to get this.

Код:
#if defined _objects_included
#endinput
#endif
#define _objects_included
#pragma library objects
Im not sure how to convert. :S any help you can give is great help.

Thanks,
Australia Life RolePlay.
Reply
#2

Hey mate,

Just convert your objects with http://www.convertffs.com/ or http://gtamap.delux-host.com/converter/
Reply
#3

replace your streamer.inc with the new one
Reply
#4

THANK YOU BOTH!!!! It now work i owe you both big time
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)