16.05.2010, 00:17
Quote:
|
Originally Posted by Lipepva
Vocк criou a public PortaoBallas ?
Se nгo criou coloque pawn Код:
|
pawn Код:
new portaopc;
pawn Код:
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;
}
pawn Код:
public portaopc()
{
MoveObject(portaopc,931.888671875, -1014.7592773438, 34.718353271484, 2);//X,Y,Z Cordenadas do portao fechado
return 1;
}
pawn Код:
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.

