Quote:
Originally Posted by TheHiredKillers
tem coisa errada ai olha
pawn Код:
MoveObject(p1,-1058.1135253906, -1038.6326904297, 128.21875,1);//ai onde ta p1 isso provalvelmente й uma variavel armazenando o id do portao
nesse script nao esta declarada essa variavel,devia tar assim
pawn Код:
if (strcmp(cmdtext, "/fporta", true) ==0) { new p1=1382//esse 1382 no caso й o id do portao mais o id ta errado botei ai aleatorio vc troca ai
if (PlayerInfo[playerid][pAdmin] > 1) MoveObject(p1,-1058.1135253906, -1038.6326904297, 128.21875,1); //CORDENADAS DELE ABERTO return 1; } if (strcmp(cmdtext, "/aporta", true) ==0) { if(PlayerInfo[playerid][pAdmin] > 1) MoveObject(p1,-1049.50390625, -1038.8505859375, 130.46192932129,1); //CORDENADAS DELE FECHADO return 1; }
|
p1 й para definir o objeto.
Ex:
pawn Код:
new p1; // no topo do gm
public OnGameModeInit()
{
p1 = CreateObject(980,0.0,0.0,0.0,0.0,0.0,0.0,200.0);
return 1;
}
if (strcmp(cmdtext, "/aporta", true) ==0)
{
if(PlayerInfo[playerid][pAdmin] > 1)
MoveObject(p1,-1049.50390625, -1038.8505859375, 130.46192932129,1); //CORDENADAS DELE FECHADO
return 1;
}