new portaopc;
portaopc = CreateObject(971, 937.88873291016, -1014.8251953125, 34.718353271484, 0.000000, 0.000000, 179.36492919922); //
if(strcmp(cmd, "/ppc", true) == 0) { if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 938.9279,-1005.4316,34.6513)) { //Em Frente do Portao MoveObject( portaopc, 931.888671875, -1014.7592773438, 34.718353271484,3); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Abriu Este Portao!", sendername); ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(playerid, "~g~Aberto", 5000, 3); SetTimer("PortaoBallas", 5000, false); } else { //SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e PM ***"); } return 1; }
public PortaoBallas()
{
MoveObject(PortalBallas,X,Y,Z,Velocidade);//X,Y,Z Cordenadas do portao fechado
return 1;
}
Originally Posted by Lipepva
Vocк criou a public PortaoBallas ?
Se nгo criou coloque pawn Код:
|
new portaopc;
if(strcmp(cmd, "/ppc", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 938.9279,-1005.4316,34.6513)) { //Em Frente do Portao
MoveObject( portaopc, 931.888671875, -1014.7592773438, 34.718353271484,3);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("portaopc", 5000, false);
} else {
//SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e PM ***");
}
return 1;
}
public portaopc()
{
MoveObject(portaopc,931.888671875, -1014.7592773438, 34.718353271484, 2);//X,Y,Z Cordenadas do portao fechado
return 1;
}
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(44044) : error 021: symbol already defined: "portaopc"
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(44047) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
if(strcmp(cmd, "/ppc", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 938.9279,-1005.4316,34.6513)) { //Em Frente do Portao
MoveObject( portaopc, 931.888671875, -1014.7592773438, 34.718353271484,3);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("PortaoBallas", 5000, false);
if (!PlayerToPoint(5.0, playerid, 938.9279,-1005.4316,34.6513))
{
MoveObject(portaopc, 937.88873291016, -1014.8251953125, 34.718353271484,3);
return 1;
}
else
{
forward abrirportaopc();
new abrirportaopc;
abrirportaopc = CreateObject(971, 937.88873291016, -1014.8251953125, 34.718353271484, 0.000000, 0.000000, 179.36492919922);
if(strcmp(cmd, "/apc", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 938.9279,-1005.4316,34.6513)) { //GateGaragem
MoveObject( abrirportaopc, 937.888671875, -1014.8251953125, 27.218353271484,5);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("abrirportaopc", 5000, false);
} else {
//SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e do B.O.P.E ***");
}
return 1;
}
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(490) : error 021: symbol already defined: "abrirportaopc"
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(44046) : error 021: symbol already defined: "abrirportaopc"
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(44049) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
new portaaaaopc; forward portaaaaaaopc();
portaaaaopc = CreateObject(971, 937.88873291016, -1014.8251953125, 34.718353271484, 0.000000, 0.000000, 179.36492919922);
if(strcmp(cmd, "/apc", true) == 0) { if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 938.9279,-1005.4316,34.6513)) { //GateGaragem MoveObject( portaaaaopc, 937.888671875, -1014.8251953125, 27.218353271484,5); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Abriu Este Portao!", sendername); ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(playerid, "~g~Aberto", 5000, 3); SetTimer("portaaaaaaopc", 5000, false); } else { //SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e do B.O.P.E ***"); } return 1; }
public portaaaaaaopc(); { MoveObject(portaaaaopc, 937.888671875, -1014.8251953125, 27.218353271484,5); return 1; }
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(490) : error 021: symbol already defined: "portaaaaopc"
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(44045) : error 021: symbol already defined: "portaaaaopc"
D:\GM\G3\TENTAN~1\2B00~1\bmc.pwn(44048) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.