OBJECT ID 980 GONE FROM SERVER!!!! HELP ME PLEASE
#1

Ok i make basis again, full with gates, for gate i use object id 980.

in my script i firs at top make

new hitmangate;

after that define it

hitmangate = CreateObject(xxxxxxxxxxxx)

and make cmd to open it.
That cmd work 100% becouse i make more gates with that cmd, problem is not that and gates i made days before gone from server, but when i type cmd for open or close it, server tell me like i realy open, close it but i cant see it!!!

repeat, id for gate is 980 and that object gone from server from everyplace i make it!!!!

wtf is this?!!! help me
Reply
#2

Well I would really check and make sure you are creating it and at the right coordinates. Just to be sure. Why don't you post the line where you created it.
Reply
#3

here is code

//-------------------------------[lgate]-------------------------------------------------------------------------
if (strcmp(cmdtext, "/lcno", true)==0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
MoveObject(lcngate,1301.665,-2056.976,65.734, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "OPEN.");
}
else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
}
if (strcmp(cmdtext, "/lcnc", true)==0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
MoveObject(lcngate ,1298.355,-2056.840,60.140, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "CLOSE");
}
else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
}

this is one of the gates, this one is for lcn band and this gate does not exist on server but i get messages OPEN and CLOSE when i type cmd

Reply
#4

Well it will say that it opened/closed the gate whether or not you ever created them because it doesn't know.
Reply
#5

i am not shure i understand you full becouse my english is not good. so what i need to do? can you help?
that object disapire at second :S
one time he is there, when i join againt its not there :S
Reply
#6

It disappears after you type the command? Or is it never there?
Reply
#7

he is never there
Reply
#8

Post the CreateObject part.
Reply
#9

here is all steps i make

at top i do new kapijalcn

Код:
new lcngate;
that i create object

Код:
lcngate = CreateObject(980,1298.355,-2056.840,60.140,0.0,0.0,0.0);
and after that make cmd

Код:
 if (strcmp(cmdtext, "/lcno", true)==0)
  {
   if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
   {
     MoveObject(lcngate,1301.665,-2056.976,65.734, 8.0);
     SendClientMessage(playerid, COLOR_GREEN, "OPEN.");
   }
   else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
  }
  if (strcmp(cmdtext, "/lcnc", true)==0)
  {
   if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
   {
     MoveObject(lcngate,1298.355,-2056.840,60.140, 8.0);
     SendClientMessage(playerid, COLOR_GREEN, "CLOSE");
   }
   else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
  }
Reply
#10

That does seem odd. You could run this command. It will set your position to right where you created the gate to check if it really is there. Other than that, beats me.

pawn Код:
if(!strcmp(cmdtext,"/gotogate",true))
{
   SetPlayerPos(playerid,1298.355,-2056.840,60.140);
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)