Electric Gates Script Problem!
#7

Quote:
Originally Posted by shotyoudie
Quote:
Originally Posted by [LSR
State_Trooper ]
edited my post, try again
You need to only copy X,Y,Z not the rotations (last 3 coords) see:
Код:
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed)
https://sampwiki.blast.hk/wiki/MoveObject
I Tried that, this is the error:

Quote:

C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(96) : error 001: expected token: ";", but found "return"
C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(96) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

this is the code i wrote in:

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/OpenGate", cmdtext, true, 10) == 0)
{
MoveObject(968, 1544.70703125, -1630.7634277344, 13.095315933228, 1)
return 1;
}
return 0;
}

i only wrote opening command, to make it easier
Reply


Messages In This Thread
Electric Gates Script Problem! - by sammypiv - 28.03.2010, 13:26
Re: Electric Gates Script Problem! - by [LSR]State_Trooper - 28.03.2010, 13:28
Re: Electric Gates Script Problem! - by sammypiv - 28.03.2010, 13:34
Re: Electric Gates Script Problem! - by [LSR]State_Trooper - 28.03.2010, 13:35
Re: Electric Gates Script Problem! - by sammypiv - 28.03.2010, 13:46
Re: Electric Gates Script Problem! - by shotyoudie - 28.03.2010, 13:47
Re: Electric Gates Script Problem! - by sammypiv - 28.03.2010, 13:58
Re: Electric Gates Script Problem! - by [LSR]State_Trooper - 28.03.2010, 13:59
Re: Electric Gates Script Problem! - by anumaz - 28.03.2010, 14:00
Re: Electric Gates Script Problem! - by [LSR]State_Trooper - 28.03.2010, 14:02

Forum Jump:


Users browsing this thread: 2 Guest(s)