Add streamer
#1

Hello
what i need to do if i want add streamer
i want put this streamer on my gamemode
https://sampforum.blast.hk/showthread.php?tid=102865
I need add all natives too?what i need to put in my game mode exatly?
Reply
#2

Just add this line beneath your other includes:
pawn Код:
#include <streamer>
Then just replace CreateObject with CreateDynamicObject (use search and replace function) and you're done.
Reply
#3

the moving gates too?
Reply
#4

Quote:
Originally Posted by Chris_Morrison
Посмотреть сообщение
the moving gates too?
pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
native DestroyDynamicObject(objectid);
native IsValidDynamicObject(objectid);
native SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z);
native GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z);
native SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz);
native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);//move objects
native StopDynamicObject(objectid);
native DestroyAllDynamicObjects();
native CountDynamicObjects();
https://sampforum.blast.hk/showthread.php?tid=102865
Reply
#5

pawn Код:
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\windows\pawno\include\streamer.inc(106) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\windows\pawno\include\streamer.inc(111) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\windows\pawno\include\streamer.inc(112) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\windows\pawno\include\streamer.inc(113) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Lines:
pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);-Line 107

native SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz);-112
native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);-113
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);-114
Please help me i need script and i can't with this errors! i must have a streamer!
I replace all you told me
Reply
#6

You leave out the 'native' part:
pawn Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz);-112
GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);-113
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);-114
Reply
#7

What i need to do with this things?put it in my game mode?
Reply
#8

Help?
Reply
#9

Your not even trying to help yourself, you just want spoon feeding.

Read the streamers thread:

https://sampforum.blast.hk/showthread.php?tid=102865

Then i suggest reading:

https://sampwiki.blast.hk/

Everything you need is there, no biggie.
Reply
#10

I didn't understand what i need to do with the Natives and how to fix the errors
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)