It would be nice if the Streamer could Update for a Player if a item was created.
When i created a CP i have to move or do something to Update the Streamer. |
When i created a CP i have to move or do something to Update the Streamer.
|
Streamer_ToggleIdleUpdate(playerid, 1);
stock p_CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0) { new cpid = -1; cpid = CreateDynamicCP(x, y, z, size, worldid, interiorid, playerid, streamdistance); Streamer_Update(playerid); return cpid; }
stock p_CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0) { new Text3D:ddid = -1; ddid =CreateDynamic3DTextLabel(text, color, x, y, z, drawdistance, attachedplayer, attachedvehicle, testlos, worldid, interiorid, playerid, streamdistance); Streamer_Update(playerid); return ddid; }
Use this at OnPlayerConnect:
Код:
Streamer_ToggleIdleUpdate(playerid, 1); |
Not really, see if you toggle it off it updates less, but leave it on and it's not going to increase in updates, it's just going to continually update.
It's like if someone gets the last of something at a shop, it feels like you lost it, but you haven't technically lost anything, as you never had it in the first place. Strange analogy #46 ![]() |
Ah okay
![]() Thanks I think a vehicle Streamer isnt necessary because of the limit but if the streamer has a vehicle streamer, too, maybe anyone could use it. Its only a idea for a next Big Update ![]() |
C:\Users\Andrei\Desktop\Server Teste R8\pawno\include\streamer.inc(220) : error 017: undefined symbol "MAPICON_LOCAL" C:\Users\Andrei\Desktop\Server Teste R8\pawno\include\streamer.inc(439) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Streamer_EnableItems(playerid, type, enable); Example: Streamer_EnableItems(playerid, STREAMER_TYPE_OBJECT, 0);
Seems that I don't have that problem. When I spectate a player, I can still see objects controlled by the plugin.
|
C:\Documents and Settings\Administrateur\Bureau\*****\pawno\include\streamer.inc(332) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit") C:\Documents and Settings\Administrateur\Bureau\*****\pawno\include\streamer.inc(354) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect") C:\Documents and Settings\Administrateur\Bureau\*****\pawno\include\streamer.inc(376) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
A bug (in fact, streamer plugin don't have this feature): If you are spectating somebody with TogglePlayerSpectating, PlayerSpectatePlayer/PlayerSpectateVehicle, streamed objects will not show at you, can you add this feature, please ?
|
native GetDynamicObjectMaterialText(objectid, materialindex, text[], &materialsize, fontface[], &fontsize, &bold, &fontcolor, &backcolor, &textalignment, maxtext = sizeof text, maxfontface = sizeof fontface);
native SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
Hello ,
Please how to fix this problem ![]() Код:
C:\Documents and Settings\Administrateur\Bureau\*****\pawno\include\streamer.inc(332) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit") C:\Documents and Settings\Administrateur\Bureau\*****\pawno\include\streamer.inc(354) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect") C:\Documents and Settings\Administrateur\Bureau\*****\pawno\include\streamer.inc(376) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings. |
Filterscript 'xStream.amx' loaded. [2012/04/22 20:30:00] [debug] Run time error 5: "Invalid memory access" [2012/04/22 20:30:00] [debug] Backtrace: [2012/04/22 20:30:00] [debug] #0 001d815c in public Itter_OnGameModeInit () at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\gamemodes\nmss.pwn:39713 [2012/04/22 20:30:00] [debug] #1 native CallLocalFunction () from samp-server.exe [2012/04/22 20:30:00] [debug] #2 00008864 in public zcmd_OnGameModeInit () at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\pawno\include\foreach.inc:639 [2012/04/22 20:30:00] [debug] #3 native CallLocalFunction () from samp-server.exe [2012/04/22 20:30:00] [debug] #4 000016c4 in public Streamer_OnGameModeInit () at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\pawno\include\zcmd.inc:68 [2012/04/22 20:30:00] [debug] #5 native CallLocalFunction () from samp-server.exe [2012/04/22 20:30:00] [debug] #6 00000c30 in public OnGameModeInit () at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\pawno\include\streamer.inc:324 [2012/04/22 20:30:01] [debug] Run time error 4: "Array index out of bounds" [2012/04/22 20:30:01] [debug] Accessing element at negative index -1 [2012/04/22 20:30:01] [debug] Backtrace: [2012/04/22 20:30:01] [debug] #0 0021dce4 in Float:GetElevatorZCoordForFloor (floorid=-1) at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\gamemodes\nmss.pwn:45480 [2012/04/22 20:30:01] [debug] #1 0021cc90 in Elevator_MoveToFloor (floorid=-1) at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\gamemodes\nmss.pwn:45324 [2012/04/22 20:30:01] [debug] #2 001d8ca8 in public OnDynamicObjectMoved (objectid=52938) at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\gamemodes\nmss.pwn:39798
See if this is fixed in the newest revision.
Added: pawn Код:
|
(objectid, text[], materialindex
(objectid, materialindex, text[]