SA-MP Forums Archive
Have the code of texture studio. What sould i do next - 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: Have the code of texture studio. What sould i do next (/showthread.php?tid=578786)



Have the code of texture studio. What sould i do next - Zeddclarity - 22.06.2015

So after make a map and texture it. I have the code but i dont know how to compile it, help me )
I put the code like this
#include <a_samp>
#include <streamer>
new tmpobjid;

public OnFilterScriptInit()
tmpobjid = CreateDynamicObject(19379,1162.075,-1329.239,-3.357,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "sl_vicwall02", 0);
return 1;
}
And the warn
D:\Documents and Settings\Khong co password\My Documents\New Folder\map design\texture map\HOSPITAL INT.pwn(6) : warning 202: number of arguments does not match definition
D:\Documents and Settings\Khong co password\My Documents\New Folder\map design\texture map\HOSPITAL INT.pwn(7) : error 021: symbol already defined: "SetDynamicObjectMaterial"
D:\Documents and Settings\Khong co password\My Documents\New Folder\map design\texture map\HOSPITAL INT.pwn(846) : error 010: invalid function or declaration
D:\Documents and Settings\Khong co password\My Documents\New Folder\map design\texture map\HOSPITAL INT.pwn(6) : warning 204: symbol is assigned a value that is never used: "tmpobjid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Re: Have the code of texture studio. What sould i do next - SecretBoss - 22.06.2015

Hmmmm how the code looks like? createobject or createdynamicobject or what?


Re: Have the code of texture studio. What sould i do next - Konstantinos - 22.06.2015

Код:
public OnFilterScriptInit()
{
    tmpobjid = CreateDynamicObject(19379,1162.075,-1329.239,-3.357,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
...
and make sure the version of streamer you have contains "drawdistance" parameter in CreateDynamicObject otherwise will give the warning about number of arguments does not match definition.


Re: Have the code of texture studio. What sould i do next - Zeddclarity - 22.06.2015

But if i put { under public onlifterscript
The map will compile with out texture (