SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 17/01/2010, 07:28 PM   #1
bRn
Big Clucker
 
bRn's Avatar
 
Join Date: Jun 2009
Posts: 145
Reputation: 0
Default [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?
__________________
...
bRn is offline   Reply With Quote
Old 17/01/2010, 07:54 PM   #2
Guilherme_Canani
Huge Clucker
 
Join Date: Nov 2009
Posts: 253
Reputation: 1
Default Re: [AJUDA] Em corrigir 43 Warnings

Tenta:

pawn Code:
CreateDynamicObject(1225,1924.690,-1871.286,29.442,0.0;
Guilherme_Canani is offline   Reply With Quote
Old 17/01/2010, 08:02 PM   #3
bRn
Big Clucker
 
bRn's Avatar
 
Join Date: Jun 2009
Posts: 145
Reputation: 0
Default Re: [AJUDA] Em corrigir 43 Warnings

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.
__________________
...
bRn is offline   Reply With Quote
Old 17/01/2010, 08:08 PM   #4
[O_o]Davidovich
Big Clucker
 
Join Date: Sep 2009
Posts: 140
Reputation: 0
Default 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.
[O_o]Davidovich is offline   Reply With Quote
Old 17/01/2010, 08:25 PM   #5
bRn
Big Clucker
 
bRn's Avatar
 
Join Date: Jun 2009
Posts: 145
Reputation: 0
Default 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?
__________________
...
bRn is offline   Reply With Quote
Old 17/01/2010, 08:26 PM   #6
[O_o]Davidovich
Big Clucker
 
Join Date: Sep 2009
Posts: 140
Reputation: 0
Default 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.
[O_o]Davidovich is offline   Reply With Quote
Old 17/01/2010, 08:39 PM   #7
netado
Big Clucker
 
Join Date: Dec 2009
Posts: 140
Reputation: 1
Default Re: [AJUDA] Em corrigir 43 Warnings

pawn 0.3a?
netado is offline   Reply With Quote
Old 17/01/2010, 09:00 PM   #8
bRn
Big Clucker
 
bRn's Avatar
 
Join Date: Jun 2009
Posts: 145
Reputation: 0
Default Re: [AJUDA] Em corrigir 43 Warnings

Quote:
pawn 0.3a?
Sim
__________________
...
bRn is offline   Reply With Quote
Old 17/01/2010, 09:21 PM   #9
Guilherme_Canani
Huge Clucker
 
Join Date: Nov 2009
Posts: 253
Reputation: 1
Default Re: [AJUDA] Em corrigir 43 Warnings

Puts eu errei, tipo
Coloca uma ")" depois do 0.0
Guilherme_Canani is offline   Reply With Quote
Old 17/01/2010, 09:52 PM   #10
UnK_CooL_
Little Clucker
 
Join Date: Dec 2009
Posts: 27
Reputation: 0
Default Re: [AJUDA] Em corrigir 43 Warnings

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

Lol, ya.
UnK_CooL_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ajuda]warnings thekila22 Português/Portuguese 4 24/06/2010 04:42 PM
[AJUDA]Corrigir Erros angels182 Português/Portuguese 7 19/06/2010 03:03 AM
[AJUDA] WARNINGS ! higoroliveira22 Português/Portuguese 8 15/06/2010 09:33 PM
[AJUDA]Warnings and Errors hudsonramos10 Português/Portuguese 15 16/03/2010 07:57 PM
Aff, essas warnings -.- AJUDA AE! Joaquim_Blakman Português/Portuguese 10 09/02/2010 06:32 PM


All times are GMT. The time now is 05:13 AM.


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