new portao; //CRIE UM NOME PARA UM PORTAO -- COLOQUE ISTO NO TOPO DO GM
public OnGameModeInit()
{
portao = CreateDynamicObject(2963,941.90002441,2113.69995117,1012.09942627,0.0,0.0,270.0);
//DEFINA QUE O PORTAO SERБ IGUAL A ESTE PORTAO CRIADO
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd,"/aportao",true) == 0)// QUANDO O PLAYER DIGITAR ISTO IRБ ACONTECER ISSO ABAIXO:
{
MoveDynamicObject(portao, 946.65435791,2113.69995117,1012.09942627, 4);
//ESTA LINHA IRБ ABRIR O PORTAO
return 1;
}
if(strcmp(cmd,"/fportao",true) == 0)
{
MoveDynamicObject(portao, 941.90002441,2113.69995117,1012.09942627, 4);
// E ESTA IRБ FECHAR
return 1;
}
return 0; // FECHA A PUBLIC
}
essa parte >
portao = CreateDynamicObject(2963,941.90002441,2113.6999511 7,1012.09942627,0.0,0.0,270.0); //DEFINA QUE O PORTAO SERБ IGUAL A ESTE PORTAO CRIADO return 1; eu modifico? |
X: 941.90002441
Y: 2113.69995117
Z: 1012.09942627
Angulo de rotaзгo X: 0.0
Angulo de rotaзгo y: 0.0
Angulo de rotaзгo Z: 270.0
CreateObject x CreateDynamicObject
MoveObject x MoveDynamicObject
new portao; //CRIE UM NOME PARA UM PORTAO -- COLOQUE ISTO NO TOPO DO GM public OnGameModeInit() { portao = CreateDynamicObject(987, 1545.29, -1621.96, 12.00, 0.00, 0.00, 269.94); //DEFINA QUE O PORTAO SERБ IGUAL A ESTE PORTAO CRIADO return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmd,"/aportao",true) == 0)// QUANDO O PLAYER DIGITAR ISTO IRБ ACONTECER ISSO ABAIXO: { MoveDynamicObject(portao, 987, 1545.29, -1621.96, 6.04, 0.00, 0.00, 269.94); //ESTA LINHA IRБ ABRIR O PORTAO return 1; } if(strcmp(cmd,"/fportao",true) == 0) { MoveDynamicObject(portao, 987, 1545.29, -1621.96, 12.00, 0.00, 0.00, 269.94); // E ESTA IRБ FECHAR return 1; } return 1; // FECHA A PUBLIC }
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(3994) : warning 217: loose indentation C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(3996) : error 029: invalid expression, assumed zero C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(3997) : error 001: expected token: ";", but found "{" C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4002) : warning 225: unreachable code C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4002) : error 029: invalid expression, assumed zero C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4002) : error 017: undefined symbol "playerid" C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4004) : error 017: undefined symbol "cmd" C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4006) : warning 202: number of arguments does not match definition C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4006) : warning 202: number of arguments does not match definition C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4006) : warning 202: number of arguments does not match definition C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4010) : error 017: undefined symbol "cmd" C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4012) : warning 202: number of arguments does not match definition C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4012) : warning 202: number of arguments does not match definition C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4012) : warning 202: number of arguments does not match definition C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4021) : warning 225: unreachable code C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4825) : warning 217: loose indentation C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4826) : warning 217: loose indentation C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4955) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.