new Restrita;
Restrita = CreateObject(971,286.2000122,1816.0000000,20.5000000,0.0000000,0.0000000,268.0000000); //Fechado
Restrita = CreateObject(971,286.3999939,1824.6999512,20.5000000,0.0000000,0.0000000,269.9945068); //Fechado
//Aberto
CreateObject(971,286.2000122,1811.0000000,20.5000000,0.0000000,0.0000000,270.0000000); //Aberto
CreateObject(971,286.2000122,1831.5999756,20.5000000,0.0000000,0.0000000,269.9945068); //Aberto
if(strcmp("/AbrirP", cmdtext, true, 7) == 0)
{
SendClientMessage(playerid, Branco,"| INFO | O portгo da Area restrita foi {FF4500}Aberto!");
MoveObject(Restrita,286.2000122,1811.0000000,20.5000000,0.0000000,0.0000000,270.0000000, 6);//aberto
MoveObject(Restrita,286.2000122,1831.5999756,20.5000000,0.0000000,0.0000000,269.9945068, 6);//aberto
return 1;
}
if(strcmp("/AbrirP", cmdtext, true, 7) == 0)
{
SendClientMessage(playerid, Branco,"| INFO | O portгo da Area restrita foi {FF4500}Aberto!");
MoveObject(Restrita,286.2000122,1811.0000000,20.5000000, 2.0, 0.0000000,0.0000000,270.0000000);//aberto
MoveObject(Restrita,286.2000122,1831.5999756,20.5000000, 2.0, 0.0000000,0.0000000,269.9945068);//aberto
return 1;
}
new Restrita[2];
Restrita[0] = CreateObject(971,286.2000122,1816.0000000,20.5000000,0.0000000,0.0000000,268.0000000); //Fechado
Restrita[1] = CreateObject(971,286.3999939,1824.6999512,20.5000000,0.0000000,0.0000000,269.9945068); //Fechado
Ambos objetos com mesmo nome de variavel definido
use uma parametro. pawn Код:
|
C:\Users\pppp\Desktop\BRASIL RPG VTN\gamemodes\GM.pwn(9090) : error 035: argument type mismatch (argument 1)
C:\Users\pppp\Desktop\BRASIL RPG VTN\gamemodes\GM.pwn(9091) : error 035: argument type mismatch (argument 1)
MoveObject(Restrita,286.2000122,1811.0000000,20.5000000, 2.0, 0.0000000,0.0000000,270.0000000);//aberto
MoveObject(Restrita,286.2000122,1831.5999756,20.5000000, 2.0, 0.0000000,0.0000000,269.9945068);//aberto
O_KODI Seu cod ta dando erro
pawn Код:
pawn Код:
|
new Restrita[2];
if(strcmp("/AbrirP", cmdtext, true, 7) == 0)
{
SendClientMessage(playerid, Branco,"| INFO | O portгo da Area restrita foi {FF4500}Aberto!");
MoveObject(Restrita[3],286.2000122,1811.0000000,20.5000000, 2.0, 0.0000000,0.0000000,270.0000000);//aberto
MoveObject(Restrita[4],286.2000122,1831.5999756,20.5000000, 2.0, 0.0000000,0.0000000,269.9945068);//aberto
return 1;
}
if(strcmp("/AbrirP", cmdtext, true, 7) == 0)
{
SendClientMessage(playerid, Branco,"| INFO | O portгo da Area restrita foi {FF4500}Aberto!");
MoveObject(Restrita[0],286.2000122,1811.0000000,20.5000000, 2.0, 0.0000000,0.0000000,270.0000000);//aberto
MoveObject(Restrita[1],286.2000122,1831.5999756,20.5000000, 2.0, 0.0000000,0.0000000,269.9945068);//aberto
return 1;
}