31.10.2011, 23:30
WhiX
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);
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; } |
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);