[Ajuda] Portгo
#10

WhiX
Quote:

pawn Code:
new Portao;

pawn Code:
public OnFilterScriptInit()
{
Portao = CreateObject(980, -302.13659668, 1506.26147461, 71.13352203, 0.0, 0.0, 342.8113);
return 1;
}

pawn Code:
if(strcmp(cmdtext, "/Abrir", true) == 0)
{
if(!IsPlayerAdmin(playerid) || IsPlayerAdmin(playerid))
{
new Portao = MoveObject(Portao, -302.13659668,1506.26147461,71.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Vocк abriu o portгo da (Bw 2)");
}
return 1;
}

pawn Code:
if(strcmp(cmdtext, "/Fechar", true) == 0)
{
if(!IsPlayerAdmin(playerid) || IsPlayerAdmin(playerid))
{
new Portao = MoveObject(Portao, -302.13659668,1506.26147461,71.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Portгo Fechadinho manolo rs");
}
return 1;
}

Cara, coloquei aqui... Deu erro assim :


C:\Users\Gustavo\Desktop\Bw Server\gamemodes\Bw_1.pwn(524) : warning 219: local variable "Portao" shadows a variable at a preceding level
C:\Users\Gustavo\Desktop\Bw Server\gamemodes\Bw_1.pwn(534) : warning 219: local variable "Portao" shadows a variable at a preceding level
C:\Users\Gustavo\Desktop\Bw Server\gamemodes\Bw_1.pwn(183) : warning 204: symbol is assigned a value that is never used: "Portao"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.



Linhas:


524: new Portao = MoveObject(Portao, -302.13659668,1506.26147461,71.13352203, 5.0);
534: new Portao = MoveObject(Portao, -302.13659668,1506.26147461,71.13352203, 5.0);
183: Portao = CreateObject(980, -302.13659668, 1506.26147461, 71.13352203, 0.0, 0.0, 342.8113);
Reply


Messages In This Thread
[Ajuda] Portгo - by Gustavo_Samp - 31.10.2011, 21:44
Re: [Portгo] Ajudeme - by Cristhian - 31.10.2011, 21:51
Re: [Portгo] Ajudeme - by whiXґ - 31.10.2011, 21:56
Re: [Portгo] Ajudeme - by Gustavo_Samp - 31.10.2011, 21:58
Re: [Portгo] Ajudeme - by Gustavo_Samp - 31.10.2011, 22:00
Re: [Portгo] Ajudeme - by Cristhian - 31.10.2011, 22:05
Re: [Portгo] Ajudeme - by Gustavo_Samp - 31.10.2011, 22:14
Re: [Portгo] Ajudeme - by whiXґ - 31.10.2011, 22:41
Re: [Portгo] Ajudeme - by Paramount. - 31.10.2011, 22:45
Re: [Ajuda] Portгo - by Gustavo_Samp - 31.10.2011, 23:30

Forum Jump:


Users browsing this thread: 3 Guest(s)