Szia!Nekem nem engedi, beleírni a streamer.inc aljára meg a CreateObject -be sem akkor most mit tegyek?
#include streamer
Valamiért nem mûködik az EditDynamicObject függvény, nem csinál semmitviszont ugyanaz a kód alap sampos objectal pedig tökéeltesen fut.Még mielött valaki ezt gondolná nem kevertem össze a Dynamic és a nem Dynamic objecteketvan valami ötletetek?Dupla hozzászólás automatikusan összefûzve. ( 2012. május 24. - 21:26:30 )Pedig elméletileg mûködnie kéne aa plugin r67-es
Hogyan lehet objecteket, \"megnagyobbítani\"? Meg felíratott készíteni rá?\"SetObjectMaterial\" \"SetPlayerObjectMaterialText\"?Elsõ hsz-ban írták, hogy streamer-el létrelehet hozni Arénák-at. Az mire jó?
C:\\Documents and Settings\\Zoli\\Asztal\\server\\pawno\\include\\streamer.inc(155) : error 017: undefined symbol \"OBJECT_MATERIAL_SIZE_256x128\"C:\\Documents and Settings\\Zoli\\Asztal\\server\\pawno\\include\\streamer.inc(375) : warning 235: public function lacks forward declaration (symbol \"OnPlayerEditObject\")C:\\Documents and Settings\\Zoli\\Asztal\\server\\pawno\\include\\streamer.inc(397) : warning 235: public function lacks forward declaration (symbol \"OnPlayerSelectObject\")C:\\Documents and Settings\\Zoli\\Asztal\\server\\pawno\\include\\streamer.inc(399) : error 017: undefined symbol \"SELECT_OBJECT_PLAYER_OBJECT\"C:\\Documents and Settings\\Zoli\\Asztal\\server\\gamemodes\\PPC_Trucking.pwn(620) : warning 202: number of arguments does not match definitionPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
Ezt hogyan lehet megcsinálni?[* img width=500 height=310]http://kepfeltoltes.hu/121129/sa-mp-365_m_solata_www.kepfeltoltes.hu_.png[/img]Hogyan lehet az objectek méretét nagyobbítani kicsinyiteni?
CMD:material(playerid, params[]){if(GetPVarInt(playerid, \"Level\") < 4 && !IsPlayerAdmin(playerid))return SendClientMessage(playerid, COLOR_RED, MSG_OWNER);newobjectid,materialindex,modelid,txdname[128],texturename[128],materialcolor;if(sscanf(params, \"ddds[\" #STR_SIZE \"]s[\" #STR_SIZE \"]X(0x0)\", objectid, materialindex, modelid, txdname, texturename, materialcolor)) return SendClientMessage(playerid, COLOR_RED, \"HASZNÁLAT: /material objectid, materialindex, modelid, txdname, texturename, materialcolor\");if(!IsValidDynamicObject(objectid)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Rossz object ID!\");SetDynamicObjectMaterial(objectid, materialindex, modelid, txdname, texturename, ShiftRGBAToARGB(materialcolor));return 1;}CMD:gmaterial(playerid, params[]){if(GetPVarInt(playerid, \"Level\") < 4 && !IsPlayerAdmin(playerid))return SendClientMessage(playerid, COLOR_RED, MSG_OWNER);newobjectid,materialindex,modelid,txdname[128],texturename[128],materialcolor;if(sscanf(params, \"dd\", objectid, materialindex)) return SendClientMessage(playerid, COLOR_RED, \"HASZNÁLAT: /gmaterial <Object ID> <MaterialIndex>\");if(!IsValidDynamicObject(objectid)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Rossz object ID!\");GetDynamicObjectMaterial(objectid, materialindex, modelid, txdname, texturename, materialcolor);SendClientMessagef(playerid, COLOR_WHITE, \"Slot: %d, Model: %d, TXD: %s, Texture: %s, Color = %d\", materialindex, modelid, txdname, texturename, materialcolor);return 1;}
Added OnPlayerShootDynamicObject for 0.3zAdded Streamer_GetItemInternalID and Streamer_GetItemStreamerID for getting SA-MP IDs from streamer IDs and vice versaAdded Streamer_GetTickRate, Streamer_GetMaxItems, Streamer_GetVisibleItems, Streamer_GetCellDistance, Streamer_GetCellSize, Streamer_IsToggleIdleUpdate, Streamer_IsToggleItemUpdate, Streamer_DestroyAllItems, Streamer_CountItems, GetDynamicPolygonPoints, GetDynamicPolygonNumberPoints, IsAnyPlayerInDynamicArea, IsAnyPlayerInAnyDynamicArea, GetPlayerDynamicAreas, and GetPlayerNumberDynamicAreasRenamed Streamer_TickRate, Streamer_VisibleItems, Streamer_CellDistance, and Streamer_CellSize (all natives begin with Streamer_Set* now, but old natives are still usable)Deprecated DestroyAllDynamic* and CountDynamic* natives (new natives Streamer_DestroyAllItems and Streamer_CountItems are preferred now, but old natives are still usable)Added a new parameter called \"serverwide\" to the destroy and count natives that makes them work either across all scripts or only within the calling scriptAdded a new parameter called \"recheck\" to Is(Any)PlayerIn(Any)DynamicArea which allows an area check to occur without issuing a full update for the playerAdded a \"dimensions\" parameter to Streamer_GetDistanceToItem which allows the script to specify whether a 2D or 3D distance check should be performedAdded \"drawdistance\" to the end of CreateDynamicObject and \"style\" to the end of CreateDynamicMapIcon[/quote](Köszönet ZyZU-nak, amiért megnyitott a témát kérésemre!)