{
if(strcmp(cmd, "/otvori1", true) == 0)
MoveObject(gate1,999.79998779297, -644.90002441406, 121)
SendClientMessage(playerid,COLOR_LIGHTRED,"Otvarate kapiju Velicanstvenog")
return 1;
}
{
if(strcmp(cmd,"/zatvori1",true) == 0)
MoveObject(gate1,999, -645.59997558594, 120.09999847412)
SendClientMessage(playerid,COLOR_LIGHTRED,"Zatvorili ste kapiju.Hvala")
return 1 ;
}
C:\Program Files\Rockstar Games\GTA San Andreas\ravens\gamemodes\larp.pwn(26381) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\ravens\gamemodes\larp.pwn(26383) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\ravens\gamemodes\larp.pwn(26388) : warning 225: unreachable code
C:\Program Files\Rockstar Games\GTA San Andreas\ravens\gamemodes\larp.pwn(26390) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\ravens\gamemodes\larp.pwn(26395) : warning 225: unreachable code
C:\Program Files\Rockstar Games\GTA San Andreas\ravens\gamemodes\larp.pwn(26395) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
[.pawn] Your code here [./pawn]
if(strcmp(cmd, "/otvori1", true) == 0) {
MoveObject(gate1,999.79998779297, -644.90002441406, 121);
SendClientMessage(playerid,COLOR_LIGHTRED,"Otvarat e kapiju Velicanstvenog");
return 1;
}
if(strcmp(cmd,"/zatvori1",true) == 0) {
MoveObject(gate1,999, -645.59997558594, 120.09999847412);
SendClientMessage(playerid,COLOR_LIGHTRED,"Zatvori li ste kapiju.Hvala");
return 1 ;
}
This is parameter for MoveObject
(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0) So, you can try: MoveObject(gate1, 999.79998779297, -644.90002441406, 121, [speed], [RotX], [RotY],[RotZ]); |
if(!strcmp(cmdtext, "/otvori1", true))
{
MoveObject(gate1,999.79998779297, -644.90002441406, 121, 10);
SendClientMessage(playerid,COLOR_LIGHTRED,"Otvarat e kapiju Velicanstvenog");
return 1;
}
if(!strcmp(cmdtext, "/zatvori1", true))
{
MoveObject(gate1,999, -645.59997558594, 120.09999847412, 10);
SendClientMessage(playerid,COLOR_LIGHTRED,"Zatvori li ste kapiju.Hvala");
return 1 ;
}
PHP код:
|
your postion move details are wrong
https://sampwiki.blast.hk/wiki/MoveObject MoveObject(gate1, X, Y, Z, Speed, RX,RY,Rz); |