[Ajuda] Warnings
#1

Bom passei meu gm para 0.3d e os portхes bugaram , como de muitos , desbuguei com ajuda do tutorial do mata_noob mas cara portгo que desbugava aparecia 2 warn , e fui mudando , e agora tem muitos e queria tiralos , ja tentei , mas nгo consegui , se nгo nгo estaria incomodando aqui :3 ,

warns :
pawn Код:
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32847) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32847) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32847) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32892) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32892) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32892) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32937) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32937) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32937) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32952) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32952) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32967) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32967) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32967) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33023) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33023) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33023) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33037) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33037) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33037) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33052) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33052) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33052) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33112) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33112) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33112) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44233) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44233) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44233) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44269) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44269) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44269) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44279) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44279) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44279) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44299) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44299) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44299) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44309) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44309) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44309) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44314) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44314) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44314) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44319) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44319) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44319) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44324) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44324) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44324) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44339) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44339) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44339) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44344) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44344) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44344) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44345) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44345) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44345) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10608 bytes
Code size:          2050248 bytes
Data size:          2782584 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 4859824 bytes

71 Warnings.


Linhas

pawn Код:
if(strcmp(cmd, "/pr", true) == 0)
    {
        if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 250.774871 , 60.822799 , 1003.640625))
        { //GateGaragem
            MoveObject( PDDOORb, 250.774871 , 60.822799 , 1006.862670, 3, 0, 0, 5130.000000); //linha 32847 - warn
            GameTextForPlayer(playerid, "~w~Porta da Recepcao ~n~~b~Aberto", 5000, 3);
            SetTimer("GaragemDpClosed2", 5000, false);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto do portгo ou nгo й um Oficial ");
        }
        return 1;
    }
se conseguirem me ajudar com este , e descobrir onde estб o erro , faзo o mesmo no script dos outros portхes , desde ja , agradeзo muito .
Reply
#2

tente colocar
pawn Код:
return true;
ou se nгo der certo, coloque:
pawn Код:
return 0;
Reply
#3

Bom Tenta Botar Isso.
pawn Код:
#pragma tabsize             0
Reply
#4

¬¬'
Ae galerinha que responde por responder, presta atenзгo no problema!
pawn Код:
MoveObject( PDDOORb, 250.774871 , 60.822799 , 1006.862670, 3.0, 0.0, 0.0, 5130.000000);
Essa funзгo requer 7 floats, vocк havia colocado alguns valores sem a float. (Float й a variбvel que admite nъmero depois da vнrgula).

pawn Код:
MoveObject((objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
Faзa isso e compile. (coloque o .0 em todo os valores que nгo tem o .0 de todos os MoveObject, sу lembre-se que o ID do objeto nгo й uma float!)
Reply
#5

Atualize as includes para 0.3d e compile o gm.
Reply
#6

Quote:
Originally Posted by Byffano Xeddar
Посмотреть сообщение
¬¬'
Ae galerinha que responde por responder, presta atenзгo no problema!
pawn Код:
MoveObject( PDDOORb, 250.774871 , 60.822799 , 1006.862670, 3.0, 0.0, 0.0, 5130.000000);
Essa funзгo requer 7 floats, vocк havia colocado alguns valores sem a float. (Float й a variбvel que admite nъmero depois da vнrgula).

pawn Код:
MoveObject((objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
Faзa isso e compile. (coloque o .0 em todo os valores que nгo tem o .0 de todos os MoveObject, sу lembre-se que o ID do objeto nгo й uma float!)
Nгo entendi muito bem , estб faltando uma float ?


--------------------------------------------------------
Eu tenho as includes atualizadas e tudo para 0.3d , alguns objetos meus estгo CreateObject outros CreateDynamicObject , e coloquei MoveObject para desbugar os portхes :3 , que sua rotaзгo tinha bugado DD;
O que devo fazer ? '-'
Reply
#7

- O problema estб nesse seu objectid que estб como PDDOORb talvez vc pode ter colocado new PDDOORb = [ID] nгo posso saber se vocк me passar as linhas em que tem PDDOORb posso te ajudar melhor!
Reply
#8

beleza vamo la . ai estб todo o script relacionado ao portгo .

pawn Код:
new PDDOORb;
pawn Код:
forward GaragemDpClosed2();
pawn Код:
PDDOORb = CreateObject( 985 , 250.774871 , 60.822799 , 1003.640625 , 0.000000 , 0.000000 , 5130.000000 );
pawn Код:
if(strcmp(cmd, "/pr", true) == 0)
    {
        if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 250.774871 , 60.822799 , 1003.640625))
        { //GateGaragem
            MoveObject( PDDOORb, 250.774871 , 60.822799 , 1006.862670, 3, 0, 0, 5130.000000); //linha 32847 - warn
            GameTextForPlayer(playerid, "~w~Porta da Recepcao ~n~~b~Aberto", 5000, 3);
            SetTimer("GaragemDpClosed2", 5000, false);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto do portгo ou nгo й um Oficial ");
        }
        return 1;
    }
pawn Код:
public GaragemDpClosed2()
{
    MoveObject(PDDOORb,250.774871 , 60.822799 , 1003.640625, 2.0, 0, 0, 5130.000000);//GaragemClosed
    return 1;
}
:3 obg desde ja ;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)