Textured maps(scripting) - 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: Textured maps(scripting) (
/showthread.php?tid=571801)
Textured maps(scripting) -
JXbro - 22.04.2015
Well I mapped some textured map and I now can't get to script it and view it so I can take screenshots of it and post it on the forums. After I add the code to ongamemodeint I get those errors:
Код:
D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(63) : error 017: undefined symbol "CreateDynamicObject"
D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : error 001: expected token: ",", but found "..."
D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : error 029: invalid expression, assumed zero
D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : error 029: invalid expression, assumed zero
D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
And here's my script
Код:
public OnGameModeInit()
{
LoadCustomMaps();
//all the rest of the public((I don't know what to ADD here)
return 1;
}
LoadCustomMaps()
{
new tmpobject;
tmpobject = CreateDynamicObject(...);
SetObjectMaterial(tmpobject....);
//all the rest of the map((Here's where I add my code
return 1;
}
SetGameModeText("Texture Studio");
ShowPlayerMarkers(1);
ShowNameTags(1);
AllowAdminTeleport(1);
UsePlayerPedAnims();
AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
return 1;
}
Anyone help me? Should I add any includes or fix anything, thank you.
Re: Textured maps(scripting) -
lanix - 22.04.2015
Where is line 63/64
Re: Textured maps(scripting) -
JXbro - 22.04.2015
Quote:
Originally Posted by lanix
Where is line 63/64
|
line 63 tmpobject = CreateDynamicObject(...);
line 64 SetObjectMaterial(tmpobject....);
Re: Textured maps(scripting) -
Azula - 22.04.2015
PHP код:
LoadCustomMaps()
{
new tmpobject;
tmpobject = CreateDynamicObject(...);
SetObjectMaterial(tmpobject....);
//all the rest of the map((Here's where I add my code
SetGameModeText("Texture Studio");
ShowPlayerMarkers(1);
ShowNameTags(1);
AllowAdminTeleport(1);
UsePlayerPedAnims();
AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
return 1;
}
Re: Textured maps(scripting) -
Pottus - 22.04.2015
Just export it as a filterscript and compile.
You need to make sure you have the streamer plugin and includes as well dude.
Re: Textured maps(scripting) -
JXbro - 22.04.2015
Quote:
Originally Posted by Azula
PHP код:
LoadCustomMaps()
{
new tmpobject;
tmpobject = CreateDynamicObject(...);
SetObjectMaterial(tmpobject....);
//all the rest of the map((Here's where I add my code
SetGameModeText("Texture Studio");
ShowPlayerMarkers(1);
ShowNameTags(1);
AllowAdminTeleport(1);
UsePlayerPedAnims();
AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
return 1;
}
|
still the same error? I think it propably has to do with includes. Is there anyway to make a filterscript map? I guess it would be way more easier or if just fix this on gamemode.
Pottus:Could you help me with that? It's almost 1 year and a half I've not met pawno.
Re: Textured maps(scripting) -
JXbro - 22.04.2015
Solved