doubt - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: doubt (
/showthread.php?tid=637308)
doubt -
Shaheen - 12.07.2017
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
Re: doubt -
Paulice - 12.07.2017
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).
Re: doubt -
oSAINTo - 12.07.2017
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.
Re: doubt -
Meller - 12.07.2017
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.
Re: doubt -
Paulice - 12.07.2017
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.
Re: doubt -
Shaheen - 12.07.2017
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
Re: doubt -
Paulice - 12.07.2017
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)
Re: doubt -
Shaheen - 12.07.2017
Thnx
Reped