Need help
#1

I'm new at scripting and need help.

(190) : error 017: undefined symbol "heli"
(190) : warning 215: expression has no effect
(190) : error 001: expected token: ";", but found "-rational value-"
(190) : warning 215: expression has no effect
(190) : error 001: expected token: ";", but found ")"
(190) : fatal error 107: too many error messages on one line

LINE 190: MoveObject(heli,382.001038 2500.741211 52.551369);

I want to move that helipad here is full script of that part

if( !strcmp(cmdtext,"/mou",true ))
{
MoveObject(heli,382.001038 2500.741211 52.551369);
SendClientMessage(playerid,COLOR_RED, "The object has been moved up! ");
return 1;
}

if( !strcmp(cmdtext,"/mod",true ))
{
MoveObject(heli,372.814697 2547.501709 14.51081;
SendClientMessage(playerid, COLOR_RED, "The object has been moved down! ");
return 1;
}


If something is wrong please tell me!

Reply
#2

WHY DO YOU CREATE A NEW TOPIC? You could write in that one you created few mins AGO!

The SOLUTION WAS ALREADY TOLD , LEARN TO READ.!
Reply
#3

I'm sorry but i didn't rlly understand it
Reply
#4

Код:
if( !strcmp(cmdtext,"/mou",true ))
  {
  MoveObject(heli,382.001038 2500.741211 52.551369);
  SendClientMessage(playerid,COLOR_RED, "The object has been moved up! ");
  return 1;
  }

if( !strcmp(cmdtext,"/mod",true ))
  {
  MoveObject(heli,372.814697 2547.501709 14.510818);
  SendClientMessage(playerid, COLOR_RED, "The object has been moved down! ");
  return 1;
  }
Okay okay..

Код:
MoveObject(heli,372.814697 2547.501709 14.510818);
this is wrong above. because you missed a comma! that means you missed a ","

Код:
if( !strcmp(cmdtext,"/mod",true ))
  {
  MoveObject(heli,372.814697,2547.501709,14.510818);
  SendClientMessage(playerid, COLOR_RED, "The object has been moved down! ");
  return 1;
  }
Код:
if( !strcmp(cmdtext,"/mou",true ))
  {
  MoveObject(heli,382.001038,2500.741211,52.551369);
  SendClientMessage(playerid,COLOR_RED, "The object has been moved up! ");
  return 1;
  }
Now that is right.
Reply
#5

I'm compiling it again
(190) : error 017: undefined symbol "helipad"
(197) : error 017: undefined symbol "helipad"
(931) : error 017: undefined symbol "helipad"

How do i make it connect to helipad in game?
Reply
#6

Anyone? it's like you have a Elevator and you do /up and that thing goes up but how do i make it connect with helipad so when i do /mou that the object goes up
Reply
#7

on top of script:

new helipad;

That's it.
Reply
#8

Mhh weird i did this it gives 2 warnings @ compile i try in game

It says The object has been moved up! or moved down but under that it says Unknown server command and helipad doesnt move up >.<
If you need screenshot tell me
Reply
#9

anyone ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)