Object's world ID
#1

I use streamer plugin for objects(CreateDynamicObject). I wanna change the object's world ID to 0. Yes I know It can be done with CreateDynamicObject. But here's the problem, in my gm, there are about 2000+ objects and I wanna change all the object's world id to 0. Is there any converter or something that I can use to change the object's world id faster?
Reply
#2

You could use Ctrl+H if there are similar values beside the virtualworld parameter, by selecting all the lines, pressing Ctrl+H and selecting 'Selected text only'.

Care to paste a few of the lines?
Reply
#3

Highlight all of the code, and navigate to Edit in the top right corner of Pawno. Click replace and fill the "Selected text only" bubble. From there, replace the world ids to 0. Be weary to not replace other stray zeros in the highlighted code as well by including something significant such as a comma that would only be near the world id parameter.
Reply
#4

Quote:
Originally Posted by zDevon
Посмотреть сообщение
Highlight all of the code, and navigate to Edit in the top right corner of Pawno. Click replace and fill the "Selected text only" bubble. From there, replace the world ids to 0. Be weary to not replace other stray zeros in the highlighted code as well by including something significant such as a comma that would only be near the world id parameter.
How? Show me an example.
Reply
#5

Paste a line or two so we can explain.
Reply
#6

pawn Код:
CreateDynamicObject(8040,1927.00000000,888.50000000,124.60000000,0.00000000,0.00000000,0.00000000);
    CreateDynamicObject(18450,2003.50000000,889.00000000,108.50000000,0.00000000,22.00000000,0.00000000);
    CreateDynamicObject(18450,2077.20000000,889.00000000,78.73000000,0.00000000,21.99000000,0.00000000);
Reply
#7

pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
hmm... so
pawn Код:
CreateDynamicObject(8040,1927.00000000,888.50000000,124.60000000,0.00000000,0.00000000,0.00000000);
Do CTRL + H
pawn Код:
Then in Find place: ,0.00000000,0.00000000,0.00000000
Replace with: ,0.00000000,0.00000000,0.00000000,0,-1,-1,100.0
Then yes to all..
Thats the only way i can really think how.. Assuming there all 0.0000.. If not i hope you understand what im saying
Reply
#8

convertffs.com
would it be better anyhow ?
Reply
#9

Ctrl + H
Search: ');'
Replace: ',0);'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)