[AJUDA] Em corrigir 43 Warnings
#1

Ae pessoal

meu GM tб dando esses bugs na hora de compilar:

Code:
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1318) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1318) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1318) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1348) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1348) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1348) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1385) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1385) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1385) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1423) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1423) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(1423) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2518) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2518) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2518) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2597) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2597) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2597) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2741) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2741) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2741) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2784) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2784) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Desktop\GTALife Roleplay\pawno\include\YSI/Visual/YSI_objects.own(2784) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(899) : warning 202: number of arguments does not match definition
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3722) : warning 212: possibly unintended bitwise operation
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3722) : warning 213: tag mismatch
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3722) : warning 212: possibly unintended bitwise operation
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3722) : warning 213: tag mismatch
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3867) : warning 219: local variable "Coach2" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3874) : warning 219: local variable "Taxi1" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3880) : warning 219: local variable "Stunter" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3920) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3921) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3934) : warning 235: public function lacks forward declaration (symbol "DeletePickup")
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3976) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(4954) : warning 202: number of arguments does not match definition
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(4968) : warning 202: number of arguments does not match definition
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(5239) : warning 219: local variable "X" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(5239) : warning 219: local variable "Y" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(5239) : warning 219: local variable "Z" shadows a variable at a preceding level
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3984) : warning 203: symbol is never used: "idx"
E:\Documents and Settings\Bruno\Meus documentos\LDStunts.pwn(3984 -- 5284) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

43 Warnings.
Muitas linhas sгo apenas objetos como este, linha 1318:
Code:
CreateDynamicObject(1225,1924.690,-1871.286,29.442,0.0,0.0,0.0);
Muita coisa do GM bugou por exemplo as gangzones, elas nгo aparecem mais no mapa,e quando digito algum comando que nгo existe, a mensagem Unknown Command nгo aparece.
minha suspeita й que isso ocorreu depois que coloquei o FS CarMenu em meu GM.

Alguem ae pode me ajudar?
Reply
#2

Tenta:

pawn Code:
CreateDynamicObject(1225,1924.690,-1871.286,29.442,0.0;
Reply
#3

Nгo adiantou

Se eu adiciono assim,
Code:
CreateDynamicObject(1225,1924.690,-1871.286,29.442,0.0;
da esse erro:
error 001: expected token: ",", but found ";"

E com,
Code:
CreateDynamicObject(1225,1924.690,-1871.286,29.442,0.0);
Fica a mesma coisa, 43 warnings

Vou postar todas as linhas:
1318
Code:
CreateDynamicObject(1225,1924.690,-1871.286,29.442,0.0,0.0,0.0);
1348
Code:
CreateDynamicObject(3866,283.607,-1812.676,11.148,0.0,0.0,-90.000);
1385
Code:
CreateDynamicObject(3330,290.132,-1789.041,77.003,88.522,0.0,0.0);
1423
Code:
CreateDynamicObject(3330,316.548,-1687.781,166.027,36.096,-220.016,-163.052);
2518
Code:
CreateDynamicObject(1225,2526.592,-2640.465,4754.605,0.0,0.0,0.0);
2597
Code:
    CreateObject(5005, 1665.02, -1230.66, 347.23, 0.00, 22.00, 90.00);
2741 Entre 2739 e 2778 estгo com o /* e */.
Code:
CreateObject(3458, -3217.088623, -432.535065, 1.304807, 0.0000, 0.0000, 270.0000);[/b]

2784 Entre 2780 e 2825 estгo com /* e */. :|
Code:
CreateObject(1238, 1830.639771, -1544.652222, 12.700993, 0.0000, 0.0000, 0.0000);
899
Code:
AddStaticVehicle(522,1921.089,-2668.294,13.214,0.0,-1,-1);
3722
Code:
 if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 | classid == 8 | classid == 9   ){
3867
Code:
	  new Text3D:Coach2 = Create3DTextLabel("NPC_CoachDriver(ID:6)",0x33AA33AA,30.0,40.0,50.0,40.0,0);
3874
Code:
	  new Text3D:Taxi1 = Create3DTextLabel("NPC_TaxiDriver(ID:7)",0x33AA33AA,30.0,40.0,50.0,40.0,0);
3880
Code:
	  new Text3D:Stunter = Create3DTextLabel("NPC_Stunter(ID:8)",0x33AA33AA,30.0,40.0,50.0,40.0,0);
3920
Code:
  	new Float:X = x + (random(3) - random(3));
3921
Code:
  	new Float:Y = y + (random(3) - random(3));
3934
Code:
public DeletePickup(pickupid)
3976
Code:
public OnPlayerPrivmsg(playerid, recieverid, text[])
4954
Code:
SetVehiclePos(VehicleID,1252.1823,-1217.0358,562.3882,268.8181);
4968
Code:
    SetPlayerPos(playerid, 1252.1823,-1217.0358,562.3882,268.8181);
5239
Code:
new Float:X, Float:Y, Float:Z;
3984
Code:
  	new idx;
Acredito que um bug esta bugando as outras coisas.
Reply
#4

Vai no YSI_objects.own e muda as variaveis X, Y e Z pra X2, Y2 e Z2, assim vocк deve acabar com a maioria desses warnings.
Reply
#5

Quote:

Vai no YSI_objects.own e muda as variaveis X, Y e Z pra X2, Y2 e Z2, assim vocк deve acabar com a maioria desses warnings.

Teria um lugar especificado onde mudar ou eu teria que editar o YSI_objects.own todo?
Reply
#6

Quote:
Originally Posted by bRn
Quote:

Vai no YSI_objects.own e muda as variaveis X, Y e Z pra X2, Y2 e Z2, assim vocк deve acabar com a maioria desses warnings.

Teria um lugar especificado onde mudar ou eu teria que editar o YSI_objects.own todo?
Sei lб, o mais fбcil seria vocк dar "Find and replace", dai pхe e vai mudando tudo..
Eu acho que й isso, porque o erro que dб significa que a variavel foi declarada duas vezes (duas variaveis com o mesmo nome) em uma mesma seзгo.
Reply
#7

pawn 0.3a?
Reply
#8

Quote:

pawn 0.3a?

Sim
Reply
#9

Puts eu errei, tipo
Coloca uma ")" depois do 0.0
Reply
#10

Quote:
Originally Posted by Guilherme_Canani
Puts eu errei, tipo
Coloca uma ")" depois do 0.0
Lol, ya.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)