SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Português/Portuguese (https://forum.sa-mp.com/forumdisplay.php?f=34)
-   -   [AJUDA] Em corrigir 43 Warnings (https://forum.sa-mp.com/showthread.php?t=121668)

bRn 17/01/2010 07:28 PM

[AJUDA] Em corrigir 43 Warnings
 
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 (c) 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?

Guilherme_Canani 17/01/2010 07:54 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
Tenta:

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

bRn 17/01/2010 08:02 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
Não adiantou :s

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.


[O_o]Davidovich 17/01/2010 08:08 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
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.

bRn 17/01/2010 08:25 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
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?

[O_o]Davidovich 17/01/2010 08:26 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
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.

netado 17/01/2010 08:39 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
pawn 0.3a?

bRn 17/01/2010 09:00 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
Quote:

pawn 0.3a?
Sim

Guilherme_Canani 17/01/2010 09:21 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
Puts eu errei, tipo
Coloca uma ")" depois do 0.0

UnK_CooL_ 17/01/2010 09:52 PM

Re: [AJUDA] Em corrigir 43 Warnings
 
Quote:

Originally Posted by Guilherme_Canani
Puts eu errei, tipo
Coloca uma ")" depois do 0.0


Lol, ya.


All times are GMT. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.