i need some help
#1

Hello
i need some help... i mead a teleport cmd's but it have 1error.. i can't find it.. please help
my teleport cmd's:
Код:
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/apartment", true,7))
    {
        SetPlayerPos(playerid, -131.6455,-1635.9362,3.3750);
        SendClientMessage(playerid, 0x00FF00AA, "You have teleported to Apartmet!.");
        return 1;
      }

Gate system:
i need help with a gate system too... in my Apartment gate... please help... the Create objects of the Gate:

CreateObject(980, -138.60, -1638.56, 3.16, 0.00, 0.00, 5.0;
CreateObject(980, -124.56, -1637.61, 3.27, 0.00, 0.00, 6.0;
Reply
#2

try this in error 1:
Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/apartment", true,7))
    {
        SetPlayerPos(playerid, -131.6455,-1635.9362,3.3750);
         SetPlayerInterior(playerid,interiorid) // because you want to teleport into an interior ...
        SendClientMessage(playerid, 0x00FF00AA, "You have teleported to Apartmet!.");
        return 1;
      }
return 1;
}
you can see interior by using ingame commands /interior when you are in apartament
for 2 search a tutorial...
Reply
#3

What is your problem, i didn't understand it.
Reply
#4

You need an auto moveable gate or moveable gate with cmd?
Reply
#5

for auto use SetTimer and MoveGate, + public and forward good luck
for cmd use public OnPlayerCommandText, and MoveGate
Reply
#6

the gate i need with cmd's /og and /cg...
i don't use interior XStormiest so why need interior id
Reply
#7

if(strcmp(cmdtext, "/apartment", true,7)) not 7, atleast you need 10
Reply
#8

in this case you don't need interior
if(strcmp(cmdtext, "/apartment", true) == 0)
{
/// code here
}

so first CreateGate is door close or open and 2 CreateGate?
Reply
#9

Whats the error?
Reply
#10

F:\test.pwn(10) : error 030: compound statement not closed at the end of file (started at line 4)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)