#1

Hello guys how i make a map only appear when an event is running and if there is no event running it disapper
Reply
#2

PHP код:
new bool:event;

CreateMap()
{
     
CreateDynamicObject(//codes...);
     //more objects
     
return 1;
}

DestroyMap()
{
     
DestroyDynamicObject(//code);
     //more
     
return 1;
}

on event start

if(event)
{
     
CreateMap();
}
else
{
      
DestroyMap();

Reply
#3

PHP код:
CreateMap()
{
CreateDynamicObject(385166.601554.1132.21,   0.0090.001.00);
return 
1;

Warnings
PHP код:
warning 202number of arguments does not match definition 
Reply
#4

Your missing another parameter,the stream distance..

PHP код:
CreateDynamicObject(385166.601554.1132.21,0.0090.001.00,100.0); 
Reply
#5

I want it CreateObject
Reply
#6

Then change the code to createobject tho createdynamicobject is batter
Reply
#7

Quote:
Originally Posted by Loinal
Посмотреть сообщение
I want it CreateObject
Well

PHP код:
CreateObject(385166.601554.1132.21,0.0090.001.00,100.0); 
PHP код:
CreateObject(modelidFloat:XFloat:YFloat:ZFloat:rXFloat:rYFloat:rZFloat:DrawDistance 0.0
https://sampwiki.blast.hk/wiki/CreateObject
Reply


Forum Jump:


Users browsing this thread: