#1

i have a doubt
how can i convert the texture maps like :
gm = createobject(.....)
to
gm= createdynamicobject(....)

and the setobjectmaterial to setdynamicobjectmaterial ??

++rep for helping
Reply
#2

Simply by using the replace all feature in your IDE while having all (and only) lines where the action of replacing will take effect. Otherwise, with a regular expression executed either within your IDE or in runtime (most likely with a custom script).
Reply
#3

Download Notepad++, copy your gamemode over into Notepad++, CTRL+F, click "Replace".

Set "Find what" to "CreateObject(" without the ""
and set "Replace With" to "CreateDynamicObject(" without the ""
then click Replace All

then do the same thing for SetObjectMaterial to SetDynamicObjectMaterial.

Copy the gamemode back over to PAWNO and compile.
Reply
#4

Quote:
Originally Posted by oSAINTo
Посмотреть сообщение
Download Notepad++, copy your gamemode over into Notepad++, CTRL+F, click "Replace".

Set "Find what" to "CreateObject(" without the ""
and set "Replace With" to "CreateDynamicObject(" without the ""
then click Replace All

then do the same thing for SetObjectMaterial to SetDynamicObjectMaterial.

Copy the gamemode back over to PAWNO and compile.
Or simplier: CTRL + H in Pawno.
Reply
#5

Quote:
Originally Posted by oSAINTo
Посмотреть сообщение
Download Notepad++, copy your gamemode over into Notepad++, CTRL+F, click "Replace".

Set "Find what" to "CreateObject(" without the ""
and set "Replace With" to "CreateDynamicObject(" without the ""
then click Replace All

then do the same thing for SetObjectMaterial to SetDynamicObjectMaterial.

Copy the gamemode back over to PAWNO and compile.
If there aren't any CreateObjects (or whatever function you are replacing) you want to keep, then you can do that. Otherwise, put the ones you wish to replace in a new text file.
Reply
#6

Quote:
Originally Posted by oSAINTo
Посмотреть сообщение
Download Notepad++, copy your gamemode over into Notepad++, CTRL+F, click "Replace".

Set "Find what" to "CreateObject(" without the ""
and set "Replace With" to "CreateDynamicObject(" without the ""
then click Replace All

then do the same thing for SetObjectMaterial to SetDynamicObjectMaterial.

Copy the gamemode back over to PAWNO and compile.
Can u give more details about convertingSetobjectmaterial to setdynamicobjectmaterial ??

Thnx
Reply
#7

Quote:
Originally Posted by Shaheen
Посмотреть сообщение
Can u give more details about convertingSetobjectmaterial to setdynamicobjectmaterial ??

Thnx
Have a look at their parameters and do the replacements accordingly.

https://sampwiki.blast.hk/wiki/SetObjectMaterial
https://github.com/samp-incognito/sa...ives-(Objects)
Reply
#8

Thnx

Reped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)