Textured maps(scripting)
#1

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.
Reply
#2

Where is line 63/64
Reply
#3

Quote:
Originally Posted by lanix
Посмотреть сообщение
Where is line 63/64
line 63 tmpobject = CreateDynamicObject(...);
line 64 SetObjectMaterial(tmpobject....);
Reply
#4

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;

Reply
#5

Just export it as a filterscript and compile.

You need to make sure you have the streamer plugin and includes as well dude.
Reply
#6

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.
Reply
#7

Solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)